Lodash upgrade and cleanup (#2990)

* Upgrades lodash
* Replaces some usage of lodash with native functions.
* Adds linting to catch cases where native functions could be used instead of lodash functions
* Renamed testTools to testUtils

Co-authored-by: Joshi <simplyrender@gmail.com>
Co-authored-by: David Tsay <david.e.tsay@nasa.gov>
Co-authored-by: David Tsay <3614296+davetsay@users.noreply.github.com>
Co-authored-by: Andrew Henry <akhenry@gmail.com>
This commit is contained in:
Joel McKinnon
2020-05-27 10:59:02 -07:00
committed by GitHub
parent 67bea86bc8
commit 43628ad9d6
75 changed files with 131 additions and 108 deletions

View File

@@ -23,8 +23,8 @@
define([
'./plugins/plugins',
'legacyRegistry',
'testTools'
], function (plugins, legacyRegistry, testTools) {
'testUtils'
], function (plugins, legacyRegistry, testUtils) {
describe("MCT", function () {
var openmct;
var mockPlugin;
@@ -38,7 +38,7 @@ define([
mockListener = jasmine.createSpy('listener');
oldBundles = legacyRegistry.list();
openmct = testTools.createOpenMct();
openmct = testUtils.createOpenMct();
openmct.install(mockPlugin);
openmct.install(mockPlugin2);