Skip to content

Instantly share code, notes, and snippets.

@nchaulet
Last active December 18, 2015 22:49
Show Gist options
  • Save nchaulet/5857049 to your computer and use it in GitHub Desktop.
Save nchaulet/5857049 to your computer and use it in GitHub Desktop.
test mocha
describe('test class timeline', function(){
beforeEach(function() {
timeline = new Timeline(10);
});
describe('#addMessage method' , function() {
it('when i add message timeline.data must contain this message', function() {
var message = {
date: '12345'
};
timeline.addMessage(message);
timeline.data.should.contain(message);
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment