no-native-reassign -> no-global-assign

This commit is contained in:
Bryan Housel
2016-10-29 14:42:04 -04:00
parent f1896355ba
commit b2c8f72c95
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ describe('iD.serviceMapillary', function() {
mapillary = iD.services.mapillary;
mapillary.reset();
/* eslint-disable no-native-reassign */
/* eslint-disable no-global-assign */
/* mock userAgent */
if (isPhantom) {
orig = navigator;
@@ -35,7 +35,7 @@ describe('iD.serviceMapillary', function() {
} else {
navigator.__defineGetter__('userAgent', orig);
}
/* eslint-enable no-native-reassign */
/* eslint-enable no-global-assign */
});
+2 -2
View File
@@ -5,7 +5,7 @@ describe('iD.uiCmd', function () {
uaMock = function () { return ua; };
beforeEach(function() {
/* eslint-disable no-native-reassign */
/* eslint-disable no-global-assign */
/* mock userAgent */
if (isPhantom) {
orig = navigator;
@@ -23,7 +23,7 @@ describe('iD.uiCmd', function () {
} else {
navigator.__defineGetter__('userAgent', orig);
}
/* eslint-enable no-native-reassign */
/* eslint-enable no-global-assign */
});
it('does not overwrite mac keybindings', function () {