Last active
August 29, 2015 14:25
-
-
Save yelouafi/0c06ad7dda99f7385f11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import test from 'tape'; | |
import { update, actions } from '../app/js/counter'; | |
test('counter update function', (assert) => { | |
var count = 10; | |
count = update(count, {type: actions.INC}); | |
assert.equal(count, 11); | |
count = update(count, {type: actions.DEC}); | |
assert.equal(count, 10); | |
assert.end(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment