Last active
October 10, 2017 20:49
-
-
Save scott-w/47678cd65d56c82932ab52b62ae0d1bf to your computer and use it in GitHub Desktop.
Test our Model
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 { assert } from 'chai'; | |
import { MyModel } from 'model'; | |
describe('MyModel', function() { | |
let model = null | |
afterEach(function() { | |
model = null; | |
}); | |
describe('initalized empty', function() { | |
beforeEach(function() { | |
model = new MyModel(); | |
}); | |
it('defaults its counter to 0', function() { | |
assert.equal(model.get('counter'), 0); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment