Last active
December 18, 2015 22:49
-
-
Save nchaulet/5857049 to your computer and use it in GitHub Desktop.
test mocha
This file contains hidden or 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
| 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