Created
November 3, 2014 18:14
-
-
Save jsutterfield/edb4adcc15c0bcd9dffa to your computer and use it in GitHub Desktop.
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('Lightbox', function () { | |
'use strict'; | |
var windowMock = {}, | |
historyApi = modules['wikia.history'](windowMock), | |
lightbox = window.Lightbox; | |
it('lightbox is defined', function () { | |
expect(lightbox).toBeDefined(); | |
}); | |
it('has access to history.js, a module Lightbox depends on', function () { | |
expect(historyApi).toBeDefined(); | |
expect(typeof historyApi).toBe('object'); | |
}); | |
it('history.js has replaceState defined, a function Lightbox depends on', function () { | |
expect(historyApi.replaceState).toBeDefined(); | |
expect(typeof historyApi.replaceState).toBe('function'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment