Skip to content

Instantly share code, notes, and snippets.

@cbushell
Created January 16, 2011 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbushell/781681 to your computer and use it in GitHub Desktop.
Save cbushell/781681 to your computer and use it in GitHub Desktop.
Verifying constructor was called with Jasmine
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