Created
January 16, 2011 09:59
-
-
Save cbushell/781681 to your computer and use it in GitHub Desktop.
Verifying constructor was called with Jasmine
This file contains hidden or 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('iPhone', function() { | |
it('should construct an instance of iphone analytics', function() { | |
spyOn(window, 'iPhoneAnalytics'); | |
analytics.install(); | |
expect(window.iPhoneAnalytics).toHaveBeenCalled(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment