mirror of
https://github.com/nasa/openmct.git
synced 2025-04-26 13:59:50 +00:00
[Persistence] Satisfy JSHint
This commit is contained in:
parent
8279acc9a5
commit
f1e81c359e
@ -22,8 +22,6 @@
|
|||||||
/*global define*/
|
/*global define*/
|
||||||
|
|
||||||
define([], function () {
|
define([], function () {
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Listens for mutation on domain objects and triggers mutation when
|
* Listens for mutation on domain objects and triggers mutation when
|
||||||
* it occurs.
|
* it occurs.
|
||||||
|
@ -45,9 +45,6 @@ define(
|
|||||||
[ 'getCapability', 'useCapability' ]
|
[ 'getCapability', 'useCapability' ]
|
||||||
);
|
);
|
||||||
|
|
||||||
mockDomainObject.getCapability.andCallFake(function (c) {
|
|
||||||
return (c === 'persistence') && mockPersistence;
|
|
||||||
});
|
|
||||||
mockDomainObject.useCapability.andCallFake(function (c, v) {
|
mockDomainObject.useCapability.andCallFake(function (c, v) {
|
||||||
if (c === 'mutation') {
|
if (c === 'mutation') {
|
||||||
testModel = v(testModel) || testModel;
|
testModel = v(testModel) || testModel;
|
||||||
|
@ -27,7 +27,6 @@ define(
|
|||||||
describe("A timer's start action", function () {
|
describe("A timer's start action", function () {
|
||||||
var mockNow,
|
var mockNow,
|
||||||
mockDomainObject,
|
mockDomainObject,
|
||||||
mockPersistence,
|
|
||||||
testModel,
|
testModel,
|
||||||
testContext,
|
testContext,
|
||||||
action;
|
action;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user