Skip to content

Instantly share code, notes, and snippets.

@gilesbowkett
Created September 29, 2011 20:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilesbowkett/1251917 to your computer and use it in GitHub Desktop.
Save gilesbowkett/1251917 to your computer and use it in GitHub Desktop.
expect(foo).toBeInstanceOf(Bar)
# https://github.com/pivotal/jasmine/pull/70/files
jasmine.Matchers.prototype.toBeInstanceOf = (klass) ->
this.actual instanceof klass
@SimplGy
Copy link

SimplGy commented May 15, 2013

Helped me out, thanks Giles!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment