0.0.15 • Published 3 years ago

spiced-test v0.0.15

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

spiced-test

Given you have your implementation in a file named script.js, you can run the tests with npx spiced-test@latest <exercise> script.js (replace <exercise> with name of exercise, see below)

Your implementation passed the test, if you see the following output:

ᕙ(◕ل͜◕)ᕗ - OK - 🥳🥳🥳

If your implementation fails the test, you will get an descriptive error message, like:

countdown must not log number 11

Troubleshoot

  1. What does Test for exercise 'countown' does not exist. mean?
    • This means we don't have tests for the given exercise countown yet.
    • Most probably, you have a typo in the name of the exercise. Please check for the correct name to run the tests for a given exercise below.
  2. What does ENOENT: no such file or directory, open 'index.js' mean?
    • This means that a file with ne name index.js does not exists on your machine in the current folder.
    • Most probably you either mispelled the name of the file (please doublecheck), or
    • the file you want to test lives in another directory. Doublecheck your current working directory with pwd and the files in that folder with ls. If you are not in the correct folder, first navigate to the correct folder using cd, then run the test command again.

Exercises

Control Flow (Week 1, Day 2)

  1. npx spiced-test@latest logType script.js
    • make sure to name your function logType
  2. npx spiced-test@latest objectABBA script.js
    • make sure to name your new object b
  3. npx spiced-test@latest countdown script.js

Functions and Scope (Week 1, Day 3)

  1. npx spiced-test@latest sum script.js
    • make sure to name your function sum
  2. npx spiced-test@latest waitThenRun script.js
    • make sure to name your function waitThenRun
  3. npx spiced-test@latest increaseOrderOfMagnitude script.js
    • make sure to name your function increaseOrderOfMagnitude
  4. npx spiced-test@latest getTotaler script.js
    • make sure to name your function getTotaler

Arrays/Objects (Week 1, Day 4)

  1. npx spiced-test@latest each script.js
    • make sure to name your function each
  2. npx spiced-test@latest reverse script.js
    • make sure to name your function reverse
  3. npx spiced-test@latest getLessThanZero script.js
    • make sure to name your function getLessThanZero

Constructors and Prototypes / this (Week 1, Day 5)

  1. npx spiced-test@latest Rectangle script.js
    • make sure to name your constructor function Rectangle
  2. npx spiced-test@latest invertCase script.js
    • make sure to name your function invertCase
  3. npx spiced-test@latest CountdownBonus script.js
    • make sure to name your constructor function Countdown

try...catch (Week 3, Day 3)

  1. npx spiced-test@latest translateNumberToGerman script.js
    • make sure to name your function translateNumberToGerman

Generator Functions (Week 4, Day 3)

  1. npx spiced-test@latest fizzBuzz script.js
    • make sure to name your generator function fizzBuzz
  2. npx spiced-test@latest generatorExer2 script.js
    • make sure to name your generator function generatorExer2
  3. npx spiced-test@latest makeWeirdArray script.js
    • make sure to name your function makeWeirdArray
0.0.13

3 years ago

0.0.15

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.7

3 years ago

0.0.3

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago