freeCodeCamp / COM1000

freeCodeCamp's deprecated challenge editor
19 stars 16 forks source link

Updated tests #17

Closed terakilobyte closed 8 years ago

terakilobyte commented 8 years ago

@SaintPeter could you see if this reporter setup works on windows?

I've been looking into tape a bit more deeply and am favoring this reporter and style over others. It's a hybrid of Eric Elliot's suggested style and that of the tape documentation itself.

What do you all think?

ltegman commented 8 years ago

Tests work for me on Windows. @SaintPeter does this get them working for you?

SaintPeter commented 8 years ago

Looks good:

$ npm test

> COM1000@0.0.0 test d:\mean\COM1000
> babel-tape-runner tests/**/*.js | colortape

TAP version 13
# reducer.spec
# reducer should return a default state if none is provided
ok 1 reducer returns a default state
# reducer should return a new state upon a valid action type
ok 2 reducer returns a new state if action is valid
# reducer should return previous state on invalid action
ok 3 reducer returns previous state if the action is invalid

1..3
# tests 3
# pass  3

# ok
BerkeleyTrue commented 8 years ago

:+1: