unexpected
Advanced tools
Comparing version 11.15.0 to 11.15.1
@@ -1657,3 +1657,6 @@ var createStandardErrorMessage = require('./createStandardErrorMessage'); | ||
// Install the hooks: | ||
expect._expect = this._expect; | ||
this.installedHooks.forEach(function (hook) { | ||
expect.hook(hook); | ||
}); | ||
// expect._expect = this._expect; | ||
// Make sure that changes to the parent's preferredWidth doesn't propagate: | ||
@@ -1737,2 +1740,3 @@ expect.output.preferredWidth = this.output.preferredWidth; | ||
} | ||
this.installedHooks.push(fn); | ||
this._expect = fn(this._expect.bind(this)); | ||
@@ -2036,2 +2040,3 @@ }; | ||
installedPlugins: installedPlugins, | ||
installedHooks: [], | ||
types: types, | ||
@@ -2038,0 +2043,0 @@ output: output, |
@@ -894,12 +894,2 @@ var utils = require('./utils'); | ||
// TODO: Inspect "new" as an operator and Date as a built-in once we have the styles defined: | ||
var dateStr = date.toUTCString().replace(/UTC/, 'GMT'); | ||
var milliseconds = date.getUTCMilliseconds(); | ||
if (milliseconds > 0) { | ||
var millisecondsStr = String(milliseconds); | ||
while (millisecondsStr.length < 3) { | ||
millisecondsStr = "0" + millisecondsStr; | ||
} | ||
dateStr = dateStr.replace(' GMT', ("." + millisecondsStr + " GMT")); | ||
} | ||
return output | ||
@@ -909,3 +899,3 @@ .jsKeyword('new') | ||
.text('Date(') | ||
.append(inspect$1(dateStr).text(')')); | ||
.append(inspect$1(date.toISOString().replace(/\.000Z$/, 'Z')).text(')')); | ||
}, | ||
@@ -912,0 +902,0 @@ }); |
@@ -1576,3 +1576,6 @@ const createStandardErrorMessage = require('./createStandardErrorMessage'); | ||
// Install the hooks: | ||
expect._expect = this._expect; | ||
this.installedHooks.forEach((hook) => { | ||
expect.hook(hook); | ||
}); | ||
// expect._expect = this._expect; | ||
// Make sure that changes to the parent's preferredWidth doesn't propagate: | ||
@@ -1653,2 +1656,3 @@ expect.output.preferredWidth = this.output.preferredWidth; | ||
} | ||
this.installedHooks.push(fn); | ||
this._expect = fn(this._expect.bind(this)); | ||
@@ -1932,2 +1936,3 @@ }; | ||
installedPlugins, | ||
installedHooks: [], | ||
types, | ||
@@ -1934,0 +1939,0 @@ output, |
@@ -889,12 +889,2 @@ const utils = require('./utils'); | ||
// TODO: Inspect "new" as an operator and Date as a built-in once we have the styles defined: | ||
let dateStr = date.toUTCString().replace(/UTC/, 'GMT'); | ||
const milliseconds = date.getUTCMilliseconds(); | ||
if (milliseconds > 0) { | ||
let millisecondsStr = String(milliseconds); | ||
while (millisecondsStr.length < 3) { | ||
millisecondsStr = `0${millisecondsStr}`; | ||
} | ||
dateStr = dateStr.replace(' GMT', `.${millisecondsStr} GMT`); | ||
} | ||
return output | ||
@@ -904,3 +894,3 @@ .jsKeyword('new') | ||
.text('Date(') | ||
.append(inspect(dateStr).text(')')); | ||
.append(inspect(date.toISOString().replace(/\.000Z$/, 'Z')).text(')')); | ||
}, | ||
@@ -907,0 +897,0 @@ }); |
{ | ||
"name": "unexpected", | ||
"version": "11.15.0", | ||
"version": "11.15.1", | ||
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>", | ||
@@ -56,3 +56,3 @@ "keywords": [ | ||
"jest": "^24.4.0", | ||
"karma": "5.2.2", | ||
"karma": "5.2.3", | ||
"karma-browserstack-launcher": "1.6.0", | ||
@@ -59,0 +59,0 @@ "karma-chrome-launcher": "3.1.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
3156461
16948