Skip to content

Instantly share code, notes, and snippets.

@diogob
Created April 15, 2011 11:30
Show Gist options
  • Save diogob/921561 to your computer and use it in GitHub Desktop.
Save diogob/921561 to your computer and use it in GitHub Desktop.
snippet it
it("should ${1:do...}", function(){
});
snippet before
beforeEach(function(){
});
snippet describe
describe("${1:test subject}", function(){
});
snippet spy
spyOn( ${1:spyObject}, "${2:method}");
snippet equal
expect( ${1:object} ).toEqual( ${2:expectation} );
snippet called
expect( ${1:spy} ).toHaveBeenCalled();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment