Skip to content

Instantly share code, notes, and snippets.

@jsutterfield
Created November 3, 2014 18:14
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 jsutterfield/edb4adcc15c0bcd9dffa to your computer and use it in GitHub Desktop.
Save jsutterfield/edb4adcc15c0bcd9dffa to your computer and use it in GitHub Desktop.
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