'use strict';

var _interopRequire = function (obj) { return obj && obj.__esModule ? obj['default'] : obj; };

var _chai = require('chai');

var chai = _interopRequire(_chai);

var _chaiAsPromised = require('chai-as-promised');

var chaiAsPromised = _interopRequire(_chaiAsPromised);

var _Promise = require('es6-promise');

require('babel-runtime/regenerator/runtime');

var _jsdom2 = require('jsdom');

global.expect = chai.expect;

chai.use(chaiAsPromised);

if (!global.Promise) global.Promise = _Promise.Promise;

global.document = _jsdom2.jsdom('<!doctype html><html><body></body></html>');
global.window = document.defaultView;
global.navigator = window.navigator;