{"pageProps":{"code":{"blackbox.js":{"name":"blackbox.js","content":"// Returns a new string with vowels removed\nfunction removeVowels(string) {\n  return 0;\n}\n\n// Calculates the factorial of a number\nfunction factorial(num) {\n  return 0;\n}\n","path":"code/1531/24T1/2.3/blackbox.js","fileext":"js"},"blackbox2.js":{"name":"blackbox2.js","content":"// Returns a new string with vowels removed\nfunction removeVowels(string) {\n  return 0;\n}\n\n// Calculates the factorial of a number\nfunction factorial(num) {\n  return 0;\n}\n\nconsole.log(removeVowels('abcde') === 'bcd');\nconsole.log(removeVowels('frog') === 'frg');\nconsole.log(factorial(3) === 6);\nconsole.log(factorial(5) === 120);\n","path":"code/1531/24T1/2.3/blackbox2.js","fileext":"js"},"design_contract.js":{"name":"design_contract.js","content":"// Returns a new string with vowels removed\n// Input is a non-empty string type\n// Return type is another string\nfunction removeVowels(string) {\n  return 0;\n}\n\n// Calculates the factorial of a number\n// Input is a number between 1 and 10\n// Output is a positive number\nfunction factorial(num) {\n  return 0;\n}\n","path":"code/1531/24T1/2.3/design_contract.js","fileext":"js"},"even_testing1.js":{"name":"even_testing1.js","content":"function getEven(nums) {\n  const evens = [];\n  for (const number of nums) {\n    if (number % 2 === 0) {\n      evens.push(number);\n    }\n  }\n  return evens;\n}\n","path":"code/1531/24T1/2.3/even_testing1.js","fileext":"js"},"even_testing2.js":{"name":"even_testing2.js","content":"function getEven(nums) {\n  const evens = [];\n  for (const number of nums) {\n    if (number % 2 === 0) {\n      evens.push(number);\n    }\n  }\n  return evens;\n}\n\nconsole.log(getEven([1, 2, 3]));\nconsole.log(getEven([4, 5, 6]));\nconsole.log(getEven([7]));\n","path":"code/1531/24T1/2.3/even_testing2.js","fileext":"js"},"even_testing3.js":{"name":"even_testing3.js","content":"function getEven(nums) {\n  const evens = [];\n  for (const number of nums) {\n    if (number % 2 === 0) {\n      evens.push(number);\n    }\n  }\n  return evens;\n}\n\nif (getEven([1, 2, 3]).toString() !== [2].toString()) {\n  console.log(\"Doesn't work 1\");\n}\nif (getEven([4, 5, 6]).toString() !== [4, 6].toString()) {\n  console.log(\"Doesn't work 2\");\n}\nif (getEven([7]).toString() !== [].toString()) {\n  console.log(\"Doesn't work 3\");\n}\n","path":"code/1531/24T1/2.3/even_testing3.js","fileext":"js"},"jest_lib.js":{"name":"jest_lib.js","content":"// Returns a new string with vowels removed\nfunction removeVowels(string) {\n  return 0;\n}\n\nexport { removeVowels };\n","path":"code/1531/24T1/2.3/jest_lib.js","fileext":"js"},"jest_lib.test.js":{"name":"jest_lib.test.js","content":"import { removeVowels } from './jest_lib';\n\ndescribe('removeVowels', () => {\n  test('deals with no vowels', () => {\n    const example1 = removeVowels('bcd');\n    const example2 = removeVowels('lkj');\n    expect(example1).toEqual('bcd');\n    expect(example2).toEqual('lkj');\n  });\n  test('deals with only vowels', () => {\n    expect(removeVowels('aei')).toEqual('');\n    expect(removeVowels('oiu')).toEqual('');\n  });\n  test('deals with starting vowels', () => {\n    expect(removeVowels('ant')).toEqual('nt');\n    expect(removeVowels('old')).toEqual('old');\n  });\n  test('deals with ending vowels', () => {\n    expect(removeVowels('bee')).toEqual('b');\n    expect(removeVowels('hi')).toEqual('h');\n  });\n  test('deals with complex words', () => {\n    expect(removeVowels('cannot')).toEqual('cnnt');\n    expect(removeVowels('delicious')).toEqual('dlcs}');\n  });\n});\n","path":"code/1531/24T1/2.3/jest_lib.test.js","fileext":"js"},"package.json":{"name":"package.json","content":"{\n  \"name\": \"env1\",\n  \"version\": \"1.0.0\",\n  \"type\": \"module\",\n  \"description\": \"\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"test\": \"jest src\"\n  },\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"\"\n  },\n  \"author\": \"\",\n  \"license\": \"ISC\",\n  \"devDependencies\": {\n    \"@babel/preset-env\": \"^7.17.10\",\n    \"jest\": \"^28.0.3\"\n  },\n  \"dependencies\": {\n    \"prompt-sync\": \"^4.2.0\"\n  }\n}\n","path":"code/1531/24T1/2.3/package.json","fileext":"json"}}},"__N_SSG":true}