Skip to content

Instantly share code, notes, and snippets.

@mikejakobsen
Created December 4, 2016 10:27
Show Gist options
  • Save mikejakobsen/2fa2a792fd7627fedcc2a80975f6d187 to your computer and use it in GitHub Desktop.
Save mikejakobsen/2fa2a792fd7627fedcc2a80975f6d187 to your computer and use it in GitHub Desktop.
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