mirror of
https://github.com/nasa/openmct.git
synced 2025-06-21 08:39:59 +00:00
ESLint rules: array-callback-return, no-invalid-this, func-style (#3151)
* satisfied array-callback-return rule * satisfying no-invalid-this rule * fixed invalid-this issues * changed isNotEqual to arrow function * added rule func-style * added return false to satisfy array-callback-return rule Co-authored-by: Joel McKinnon <jmckinnon@apple.com> Co-authored-by: Joshi <simplyrender@gmail.com> Co-authored-by: Andrew Henry <akhenry@gmail.com>
This commit is contained in:
@ -60,7 +60,7 @@ define(
|
||||
]
|
||||
);
|
||||
|
||||
mockCopyService.perform.and.callFake(function () {
|
||||
mockCopyService.perform.and.callFake(() => {
|
||||
var performPromise,
|
||||
callExtensions,
|
||||
spy;
|
||||
@ -79,7 +79,7 @@ define(
|
||||
}
|
||||
};
|
||||
|
||||
spy = this.perform;
|
||||
spy = mockCopyService.perform;
|
||||
|
||||
Object.keys(callExtensions).forEach(function (key) {
|
||||
spy.calls.mostRecent()[key] = callExtensions[key];
|
||||
|
Reference in New Issue
Block a user