upgrade jsdom to newest version so contextify is no longer required, add travis
This commit is contained in:
@@ -325,7 +325,7 @@ describe('ZabbixDatasource', function () {
|
||||
});
|
||||
});
|
||||
|
||||
describe('When quering alerts', function () {
|
||||
describe('When querying alerts', function () {
|
||||
var options = {};
|
||||
|
||||
beforeEach(function () {
|
||||
|
||||
@@ -52,11 +52,11 @@ _prunk2.default.mock('app/core/utils/datemath', datemathMock);
|
||||
_prunk2.default.mock('angular', angularMocks);
|
||||
_prunk2.default.mock('jquery', 'module not found');
|
||||
|
||||
// Setup jsdom
|
||||
// Required for loading angularjs
|
||||
global.document = (0, _jsdom.jsdom)('<html><head><script></script></head><body></body></html>');
|
||||
global.window = global.document.parentWindow;
|
||||
global.navigator = window.navigator = {};
|
||||
var dom = new _jsdom.JSDOM('<html><head><script></script></head><body></body></html>');
|
||||
// Setup jsdom
|
||||
global.window = dom.window;
|
||||
global.document = global.window.document;
|
||||
global.Node = window.Node;
|
||||
|
||||
// Setup Chai
|
||||
|
||||
Reference in New Issue
Block a user