Created
December 4, 2016 10:27
-
-
Save mikejakobsen/2fa2a792fd7627fedcc2a80975f6d187 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
describe('test suite', function () { | |
beforeEach(function() { /*...*/ }); | |
afterEach(function() { /*...*/ }); | |
before(function() { /*...*/ }); | |
after(function() { /*...*/ }); | |
it('a basic test', function() { | |
/*...*/ }); | |
it('a test with a promise', function() { | |
return somePromiseObject; }); | |
it('an asynchronous test', function(next) { | |
if (success) { next(); } else { next(error); } | |
}); | |
xit('use "xit" for pending tests', function() { | |
/*...*/ }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment