Comparing version 2.0.52 to 2.0.53
@@ -1,5 +0,3 @@ | ||
'use strict'; | ||
"use strict"; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
var _require = require('./eyes'), | ||
@@ -13,3 +11,3 @@ eyes = _require.eyes; | ||
function isPassedParameterArgument(argumentsObj) { | ||
return _typeof(argumentsObj[2]) === 'object'; | ||
return typeof argumentsObj[2] === 'object'; | ||
} | ||
@@ -22,2 +20,3 @@ | ||
} | ||
return fn.apply(this, arguments); | ||
@@ -31,7 +30,9 @@ }; | ||
if (isPassedParameterArgument(args)) { | ||
var params = args[2]; | ||
var params = args[2]; // width or height of 0 will make the params window size to be ignored | ||
// width or height of 0 will make the params window size to be ignored | ||
if (params.width && params.height) { | ||
config.windowSize = { width: params.width, height: params.height }; | ||
config.windowSize = { | ||
width: params.width, | ||
height: params.height | ||
}; | ||
} | ||
@@ -69,6 +70,7 @@ | ||
} | ||
/** | ||
* Removes eyes.it 3rd argument to `it` funtion. | ||
*/ | ||
function ignoreEyesIt() { | ||
@@ -79,2 +81,5 @@ eyes.it = eyesWithout(it); | ||
module.exports = { augmentEyes: augmentEyes, ignoreEyesIt: ignoreEyesIt }; | ||
module.exports = { | ||
augmentEyes: augmentEyes, | ||
ignoreEyesIt: ignoreEyesIt | ||
}; |
@@ -1,2 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
@@ -11,3 +11,2 @@ var _require = require('./eyes'), | ||
var versionDescription = version ? ' version: ' + version : ''; | ||
return 'eyes.it ' + spec.getFullName() + versionDescription; | ||
@@ -22,2 +21,3 @@ } | ||
var _enableSnapshotAtBrowserGet = false; | ||
function init() { | ||
@@ -35,2 +35,3 @@ var originalBrowserGet = browser.get; | ||
} | ||
var defaultConfig = { | ||
@@ -41,3 +42,2 @@ windowSize: eyes.defaultWindowSize, | ||
}; | ||
/** | ||
@@ -51,2 +51,3 @@ * Call original `it` and modify before and after | ||
*/ | ||
function eyesIt(_it, _itArgs, config) { | ||
@@ -60,3 +61,5 @@ var _merge = merge({}, defaultConfig, config), | ||
var spec = _it.apply(this, _itArgs); | ||
var hooked = spec.beforeAndAfterFns; | ||
spec.beforeAndAfterFns = function () { | ||
@@ -81,3 +84,3 @@ //TODO: are we sure that we need to pass args (msg, itFn) to hooked? | ||
} | ||
}).then(done).catch(function (err) { | ||
}).then(done)["catch"](function (err) { | ||
return handleError(err, done); | ||
@@ -90,6 +93,5 @@ }); | ||
}); | ||
result.afters.push({ | ||
fn: function fn(done) { | ||
eyes.close().then(done).catch(function (err) { | ||
eyes.close().then(done)["catch"](function (err) { | ||
return handleError(err, done); | ||
@@ -104,5 +106,9 @@ }); | ||
}; | ||
return spec; | ||
} | ||
module.exports = { eyesIt: eyesIt, init: init }; | ||
module.exports = { | ||
eyesIt: eyesIt, | ||
init: init | ||
}; |
@@ -1,5 +0,7 @@ | ||
'use strict'; | ||
"use strict"; | ||
var path = require('path'); | ||
var uuid = require('uuid'); | ||
var Eyes = require('eyes.selenium').Eyes; | ||
@@ -40,14 +42,19 @@ | ||
}; | ||
eyes.checkRegionBy = function () { | ||
return Promise.resolve(); | ||
}; | ||
eyes.checkRegionByElement = function () { | ||
return Promise.resolve(); | ||
}; | ||
eyes.checkRegion = function () { | ||
return Promise.resolve(); | ||
}; | ||
eyes.open = function () { | ||
return Promise.resolve(); | ||
}; | ||
eyes.close = function () { | ||
@@ -68,2 +75,5 @@ return Promise.resolve(); | ||
module.exports = { eyes: eyes, appName: appName }; | ||
module.exports = { | ||
eyes: eyes, | ||
appName: appName | ||
}; |
@@ -1,6 +0,6 @@ | ||
'use strict'; | ||
"use strict"; | ||
var _eyes = require('./eyes'); | ||
var _eyes = require("./eyes"); | ||
var _eyesAugment = require('./eyes-augment'); | ||
var _eyesAugment = require("./eyes-augment"); | ||
@@ -7,0 +7,0 @@ var shouldAugment = process.env.EYES_API_KEY; |
@@ -1,41 +0,38 @@ | ||
'use strict'; | ||
"use strict"; | ||
var _regenerator = require('babel-runtime/regenerator'); | ||
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); | ||
var _regenerator2 = _interopRequireDefault(_regenerator); | ||
var _eyes = require("../src/eyes"); | ||
var _eyes = require('../src/eyes'); | ||
var _eyesAugment = require("../src/eyes-augment"); | ||
var _eyesAugment = require('../src/eyes-augment'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } | ||
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } /** | ||
* This is actually not an integration test, it is a unit-test. | ||
* We only use the e2e suffix so that the default jasmine glob catchs this file. | ||
*/ | ||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } | ||
// Importing `../src/eyes` and not `../src`, since we don't want yet to initialize with `hookEyesIt()`. | ||
// This log array is filled by the mock functions, and asserted on after each test. | ||
var logs = []; | ||
function log(msg) { | ||
logs.push(msg); | ||
} | ||
} // Mocking `browser.get` needs to be done before calling `hookEyesIt()`. | ||
// Mocking `browser.get` needs to be done before calling `hookEyesIt()`. | ||
var originalBrowserGet = browser.get; | ||
browser.get = function () { | ||
log('browser_get'); | ||
return Promise.resolve(); | ||
}; | ||
}; // Now that `browser.get` is mocked, we can augment eyes | ||
// Now that `browser.get` is mocked, we can augment eyes | ||
(0, _eyesAugment.augmentEyes)(); | ||
/** Mocks */ | ||
/** Mocks */ | ||
var originalEyesOpen = _eyes.eyes.open; | ||
_eyes.eyes.open = function (browser, appName, specName, windowSize) { | ||
log('open(' + specName + ')'); | ||
log("open(" + specName + ")"); | ||
return Promise.resolve(); | ||
@@ -45,4 +42,5 @@ }; | ||
var originalEyesCheckWindow = _eyes.eyes.checkWindow; | ||
_eyes.eyes.checkWindow = function (msg) { | ||
log('checkWindow(' + msg + '}'); | ||
log("checkWindow(" + msg + "}"); | ||
return Promise.resolve(); | ||
@@ -52,4 +50,5 @@ }; | ||
var originalEyesClose = _eyes.eyes.close; | ||
_eyes.eyes.close = function () { | ||
log('close'); | ||
log("close"); | ||
return Promise.resolve(); | ||
@@ -59,4 +58,4 @@ }; | ||
var STUB_URL = 'http://blah.com'; | ||
/* Matchers */ | ||
/* Matchers */ | ||
var OPEN = /^open/; | ||
@@ -75,2 +74,3 @@ var BROWSER_GET = /^browser_get/; | ||
expect(logMatchers.length).toEqual(logs.length, 'boo'); // eslint-disable-line jest/prefer-to-have-length | ||
logMatchers.forEach(function (matcher, index) { | ||
@@ -89,6 +89,5 @@ expect(logs[index]).toEqual(jasmine.stringMatching(matcher)); | ||
}); | ||
describe('should create snapshot at end and browser.get', function () { | ||
_eyes.eyes.it('', _asyncToGenerator( /*#__PURE__*/_regenerator2.default.mark(function _callee() { | ||
return _regenerator2.default.wrap(function _callee$(_context) { | ||
_eyes.eyes.it('', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee() { | ||
return _regenerator["default"].wrap(function _callee$(_context) { | ||
while (1) { | ||
@@ -105,8 +104,9 @@ switch (_context.prev = _context.next) { | ||
case 4: | ||
case 'end': | ||
case "end": | ||
return _context.stop(); | ||
} | ||
} | ||
}, _callee, undefined); | ||
}, _callee); | ||
}))); | ||
afterAll(function () { | ||
@@ -116,6 +116,5 @@ finalizeAndExpect([OPEN, BROWSER_GET, CHECK_WINDOW, DO_SOMETHING, CHECK_WINDOW, CLOSE]); | ||
}); | ||
describe('should not open eyes', function () { | ||
it('', _asyncToGenerator( /*#__PURE__*/_regenerator2.default.mark(function _callee2() { | ||
return _regenerator2.default.wrap(function _callee2$(_context2) { | ||
it('', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee2() { | ||
return _regenerator["default"].wrap(function _callee2$(_context2) { | ||
while (1) { | ||
@@ -128,7 +127,7 @@ switch (_context2.prev = _context2.next) { | ||
case 2: | ||
case 'end': | ||
case "end": | ||
return _context2.stop(); | ||
} | ||
} | ||
}, _callee2, undefined); | ||
}, _callee2); | ||
}))); | ||
@@ -139,6 +138,5 @@ afterAll(function () { | ||
}); | ||
describe('should NOT create any snapshots', function () { | ||
_eyes.eyes.it('', _asyncToGenerator( /*#__PURE__*/_regenerator2.default.mark(function _callee3() { | ||
return _regenerator2.default.wrap(function _callee3$(_context3) { | ||
_eyes.eyes.it('', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee3() { | ||
return _regenerator["default"].wrap(function _callee3$(_context3) { | ||
while (1) { | ||
@@ -151,7 +149,7 @@ switch (_context3.prev = _context3.next) { | ||
case 2: | ||
case 'end': | ||
case "end": | ||
return _context3.stop(); | ||
} | ||
} | ||
}, _callee3, undefined); | ||
}, _callee3); | ||
})), { | ||
@@ -161,2 +159,3 @@ enableSnapshotAtBrowserGet: false, | ||
}); | ||
afterAll(function () { | ||
@@ -166,6 +165,5 @@ finalizeAndExpect([OPEN, DO_SOMETHING, CLOSE]); | ||
}); | ||
describe('should NOT create snapshot at end', function () { | ||
_eyes.eyes.it('', _asyncToGenerator( /*#__PURE__*/_regenerator2.default.mark(function _callee4() { | ||
return _regenerator2.default.wrap(function _callee4$(_context4) { | ||
_eyes.eyes.it('', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee4() { | ||
return _regenerator["default"].wrap(function _callee4$(_context4) { | ||
while (1) { | ||
@@ -178,10 +176,11 @@ switch (_context4.prev = _context4.next) { | ||
case 2: | ||
case 'end': | ||
case "end": | ||
return _context4.stop(); | ||
} | ||
} | ||
}, _callee4, undefined); | ||
}, _callee4); | ||
})), { | ||
enableSnapshotAtEnd: false | ||
}); | ||
afterAll(function () { | ||
@@ -191,6 +190,5 @@ finalizeAndExpect([OPEN, DO_SOMETHING, CLOSE]); | ||
}); | ||
describe('should create snapshot on browser.get inside beforeEach ', function () { | ||
beforeEach(_asyncToGenerator( /*#__PURE__*/_regenerator2.default.mark(function _callee5() { | ||
return _regenerator2.default.wrap(function _callee5$(_context5) { | ||
beforeEach( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee5() { | ||
return _regenerator["default"].wrap(function _callee5$(_context5) { | ||
while (1) { | ||
@@ -203,10 +201,11 @@ switch (_context5.prev = _context5.next) { | ||
case 2: | ||
case 'end': | ||
case "end": | ||
return _context5.stop(); | ||
} | ||
} | ||
}, _callee5, undefined); | ||
}, _callee5); | ||
}))); | ||
_eyes.eyes.it('', _asyncToGenerator( /*#__PURE__*/_regenerator2.default.mark(function _callee6() { | ||
return _regenerator2.default.wrap(function _callee6$(_context6) { | ||
_eyes.eyes.it('', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee6() { | ||
return _regenerator["default"].wrap(function _callee6$(_context6) { | ||
while (1) { | ||
@@ -219,10 +218,11 @@ switch (_context6.prev = _context6.next) { | ||
case 2: | ||
case 'end': | ||
case "end": | ||
return _context6.stop(); | ||
} | ||
} | ||
}, _callee6, undefined); | ||
}, _callee6); | ||
})), { | ||
enableSnapshotAtEnd: false | ||
}); | ||
afterAll(function () { | ||
@@ -232,6 +232,5 @@ finalizeAndExpect([OPEN, BROWSER_GET, CHECK_WINDOW, DO_SOMETHING, CLOSE]); | ||
}); | ||
describe('should create snapshot on browser.get inside it ', function () { | ||
_eyes.eyes.it('', _asyncToGenerator( /*#__PURE__*/_regenerator2.default.mark(function _callee7() { | ||
return _regenerator2.default.wrap(function _callee7$(_context7) { | ||
_eyes.eyes.it('', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee7() { | ||
return _regenerator["default"].wrap(function _callee7$(_context7) { | ||
while (1) { | ||
@@ -248,10 +247,11 @@ switch (_context7.prev = _context7.next) { | ||
case 4: | ||
case 'end': | ||
case "end": | ||
return _context7.stop(); | ||
} | ||
} | ||
}, _callee7, undefined); | ||
}, _callee7); | ||
})), { | ||
enableSnapshotAtEnd: false | ||
}); | ||
afterAll(function () { | ||
@@ -261,6 +261,5 @@ finalizeAndExpect([OPEN, DO_SOMETHING, BROWSER_GET, CHECK_WINDOW, CLOSE]); | ||
}); | ||
describe('should create snapshot in afterEach block', function () { | ||
_eyes.eyes.it('', _asyncToGenerator( /*#__PURE__*/_regenerator2.default.mark(function _callee8() { | ||
return _regenerator2.default.wrap(function _callee8$(_context8) { | ||
_eyes.eyes.it('', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee8() { | ||
return _regenerator["default"].wrap(function _callee8$(_context8) { | ||
while (1) { | ||
@@ -277,7 +276,7 @@ switch (_context8.prev = _context8.next) { | ||
case 4: | ||
case 'end': | ||
case "end": | ||
return _context8.stop(); | ||
} | ||
} | ||
}, _callee8, undefined); | ||
}, _callee8); | ||
})), { | ||
@@ -291,3 +290,2 @@ enableSnapshotAtBrowserGet: false, | ||
}); | ||
afterAll(function () { | ||
@@ -297,6 +295,5 @@ finalizeAndExpect([OPEN, BROWSER_GET, DO_SOMETHING, CHECK_WINDOW, CLOSE]); | ||
}); | ||
describe('should create snapshot at End, before afterEach block', function () { | ||
_eyes.eyes.it('', _asyncToGenerator( /*#__PURE__*/_regenerator2.default.mark(function _callee9() { | ||
return _regenerator2.default.wrap(function _callee9$(_context9) { | ||
_eyes.eyes.it('', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee9() { | ||
return _regenerator["default"].wrap(function _callee9$(_context9) { | ||
while (1) { | ||
@@ -313,7 +310,7 @@ switch (_context9.prev = _context9.next) { | ||
case 4: | ||
case 'end': | ||
case "end": | ||
return _context9.stop(); | ||
} | ||
} | ||
}, _callee9, undefined); | ||
}, _callee9); | ||
})), { | ||
@@ -323,4 +320,4 @@ enableSnapshotAtBrowserGet: false | ||
afterEach(_asyncToGenerator( /*#__PURE__*/_regenerator2.default.mark(function _callee10() { | ||
return _regenerator2.default.wrap(function _callee10$(_context10) { | ||
afterEach( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee10() { | ||
return _regenerator["default"].wrap(function _callee10$(_context10) { | ||
while (1) { | ||
@@ -333,9 +330,8 @@ switch (_context10.prev = _context10.next) { | ||
case 2: | ||
case 'end': | ||
case "end": | ||
return _context10.stop(); | ||
} | ||
} | ||
}, _callee10, undefined); | ||
}, _callee10); | ||
}))); | ||
afterAll(function () { | ||
@@ -345,14 +341,13 @@ finalizeAndExpect([OPEN, BROWSER_GET, DO_SOMETHING, CHECK_WINDOW, DO_SOMETHING, CLOSE]); | ||
}); | ||
describe('should open eyes with specName and version', function () { | ||
_eyes.eyes.it('my spec', _asyncToGenerator( /*#__PURE__*/_regenerator2.default.mark(function _callee11() { | ||
return _regenerator2.default.wrap(function _callee11$(_context11) { | ||
_eyes.eyes.it('my spec', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee11() { | ||
return _regenerator["default"].wrap(function _callee11$(_context11) { | ||
while (1) { | ||
switch (_context11.prev = _context11.next) { | ||
case 0: | ||
case 'end': | ||
case "end": | ||
return _context11.stop(); | ||
} | ||
} | ||
}, _callee11, undefined); | ||
}, _callee11); | ||
})), { | ||
@@ -359,0 +354,0 @@ enableSnapshotAtBrowserGet: false, |
@@ -1,26 +0,20 @@ | ||
'use strict'; | ||
"use strict"; | ||
var _regenerator = require('babel-runtime/regenerator'); | ||
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); | ||
var _regenerator2 = _interopRequireDefault(_regenerator); | ||
var _src = _interopRequireDefault(require("../src")); | ||
var _src = require('../src'); | ||
var _mockServer = require("./mockServer"); | ||
var _src2 = _interopRequireDefault(_src); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
var _mockServer = require('./mockServer'); | ||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } | ||
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } | ||
describe('eyes.it', function () { | ||
var _this = this; | ||
var server = new _mockServer.MockServer(); | ||
beforeEach(function () { | ||
server.start(); | ||
}); | ||
afterEach(function () { | ||
@@ -30,4 +24,4 @@ server.stop(); | ||
_src2.default.it('should not throw error', _asyncToGenerator( /*#__PURE__*/_regenerator2.default.mark(function _callee() { | ||
return _regenerator2.default.wrap(function _callee$(_context) { | ||
_src["default"].it('should not throw error', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator["default"].mark(function _callee() { | ||
return _regenerator["default"].wrap(function _callee$(_context) { | ||
while (1) { | ||
@@ -38,11 +32,11 @@ switch (_context.prev = _context.next) { | ||
_context.next = 3; | ||
return browser.get(_mockServer.MockServer.URI + '/'); | ||
return browser.get(_mockServer.MockServer.URI + "/"); | ||
case 3: | ||
case 'end': | ||
case "end": | ||
return _context.stop(); | ||
} | ||
} | ||
}, _callee, _this); | ||
}, _callee); | ||
}))); | ||
}); |
@@ -1,6 +0,7 @@ | ||
'use strict'; | ||
"use strict"; | ||
exports.__esModule = true; | ||
exports.MockServer = void 0; | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
@@ -10,12 +11,15 @@ var http = require('http'); | ||
var port = 3000; | ||
var HTML_RESPONSE = '<!Doctype html><html><head><title>Testing Eyes.it</title></head><body><h1 style="color:orangered">HELLO WORLD</h1></body></html>'; | ||
var MockServer = exports.MockServer = function () { | ||
var MockServer = /*#__PURE__*/function () { | ||
function MockServer() { | ||
_classCallCheck(this, MockServer); | ||
_defineProperty(this, "server", void 0); | ||
} | ||
MockServer.prototype.requestHandler = function requestHandler(req, res) { | ||
res.writeHead(200, { 'Content-Type': 'text/html' }); | ||
var _proto = MockServer.prototype; | ||
_proto.requestHandler = function requestHandler(req, res) { | ||
res.writeHead(200, { | ||
'Content-Type': 'text/html' | ||
}); | ||
res.write(HTML_RESPONSE); | ||
@@ -25,5 +29,4 @@ res.end(); | ||
MockServer.prototype.start = function start() { | ||
_proto.start = function start() { | ||
this.server = http.createServer(this.requestHandler); | ||
this.server.listen(port, function (err) { | ||
@@ -34,7 +37,7 @@ if (err) { | ||
console.log('server is listening on ' + port); | ||
console.log("server is listening on " + port); | ||
}); | ||
}; | ||
MockServer.prototype.stop = function stop() { | ||
_proto.stop = function stop() { | ||
this.server.close(); | ||
@@ -46,2 +49,4 @@ }; | ||
MockServer.URI = 'http://localhost:3000'; | ||
exports.MockServer = MockServer; | ||
_defineProperty(MockServer, "URI", 'http://localhost:3000'); |
@@ -1,52 +0,1 @@ | ||
{ | ||
"name": "eyes.it", | ||
"version": "2.0.52", | ||
"description": "", | ||
"main": "dist/src/index.js", | ||
"files": [ | ||
"dist" | ||
], | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"scripts": { | ||
"build": ":", | ||
"precommit": "lint-staged", | ||
"pretest": "yoshi build", | ||
"test": "yoshi test --protractor", | ||
"release": "wnpm-release --no-shrinkwrap" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/wix/eyes.it.git" | ||
}, | ||
"author": "Shahar Talmi <shahart@wix.com>", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/wix/eyes.it/issues" | ||
}, | ||
"homepage": "https://github.com/wix/eyes.it#readme", | ||
"dependencies": { | ||
"eyes.selenium": "^3.8.9", | ||
"lodash.merge": "^4.6.1" | ||
}, | ||
"devDependencies": { | ||
"protractor": "^5.4.1", | ||
"selenium-webdriver": "^2.53.0", | ||
"uuid": "^2.0.2", | ||
"wnpm-ci": "*", | ||
"yoshi": "^3.7.0" | ||
}, | ||
"lint-staged": { | ||
"*.js": "yoshi lint" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"yoshi" | ||
] | ||
}, | ||
"eslintConfig": { | ||
"extends": "yoshi" | ||
}, | ||
"gitHead": "bfb106aab57250064567734a384d726bf612e101" | ||
} | ||
{"name":"eyes.it","version":"2.0.53","description":"","main":"dist/src/index.js","files":["dist"],"publishConfig":{"registry":"https://registry.npmjs.org/"},"scripts":{"build":":","precommit":"lint-staged","pretest":"yoshi build","test":"yoshi test --protractor","release":"wnpm-release --no-shrinkwrap"},"repository":{"type":"git","url":"git+https://github.com/wix/eyes.it.git"},"author":"Shahar Talmi <shahart@wix.com>","license":"ISC","bugs":{"url":"https://github.com/wix/eyes.it/issues"},"homepage":"https://github.com/wix/eyes.it#readme","dependencies":{"eyes.selenium":"^3.8.9","lodash.merge":"^4.6.2"},"devDependencies":{"protractor":"^7.0.0","selenium-webdriver":"^3.6.0","uuid":"^8.1.0","wnpm-ci":"*","yoshi":"^4.87.0"},"lint-staged":{"*.js":"yoshi lint"},"babel":{"presets":["yoshi"]},"eslintConfig":{"extends":"yoshi"},"gitHead":"a7f89485844835a7c7689e07571a344546575ccd"} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
571
25782
Updatedlodash.merge@^4.6.2