Created
August 15, 2017 18:07
-
-
Save brianmriley/3515aad8036377629dbe22c6bd2c2cd4 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("Foo constructor", function() { | |
it("should call its `bar()` instance method.", function() { | |
spyOn(Foo.prototype, 'bar'); | |
var foo = new Foo(); | |
expect(Foo.prototype.bar).toHaveBeenCalled(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment