Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
expect(foo).toBeInstanceOf(Bar)
# https://github.com/pivotal/jasmine/pull/70/files
jasmine.Matchers.prototype.toBeInstanceOf = (klass) ->
this.actual instanceof klass
@SimplGy

This comment has been minimized.

Copy link

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
You can’t perform that action at this time.