Skip to content

Instantly share code, notes, and snippets.

@scott-w
Last active October 10, 2017 20:49
Show Gist options
  • Save scott-w/47678cd65d56c82932ab52b62ae0d1bf to your computer and use it in GitHub Desktop.
Save scott-w/47678cd65d56c82932ab52b62ae0d1bf to your computer and use it in GitHub Desktop.
Test our Model
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