Skip to content

Commit

Permalink
Also use no-native-reassign, as that's still in the prettier config s…
Browse files Browse the repository at this point in the history
…omewhere
  • Loading branch information
mroderick committed Oct 8, 2018
1 parent 1088513 commit b7c93b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/util/core/wrap-method-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,16 +169,16 @@ describe("util/core/wrapMethod", function () {

var i = 0;

// eslint-disable-next-line no-global-assign
// eslint-disable-next-line no-global-assign, no-native-reassign
Error = TypeError = function () {
this.stack = ":STACK" + ++i + ":";
};
});

afterEach(function () {
// eslint-disable-next-line no-global-assign
// eslint-disable-next-line no-global-assign, no-native-reassign
Error = this.oldError;
// eslint-disable-next-line no-global-assign
// eslint-disable-next-line no-global-assign, no-native-reassign
TypeError = this.oldTypeError;
});

Expand Down
2 changes: 1 addition & 1 deletion test/util/fake-timers-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ describe("fakeTimers.clock", function () {
it("creates real Date objects when Date constructor is gone", function () {
var realDate = new Date();

// eslint-disable-next-line no-global-assign
// eslint-disable-next-line no-global-assign, no-native-reassign
Date = function () { return; };
this.global.Date = function () { return; };

Expand Down

0 comments on commit b7c93b6

Please sign in to comment.