[Entanglement] Move policyService.allow.andReturn
...to locations where the specified return value can be more closely correlated to the relevant test cases. nasa/openmctweb#98
This commit is contained in:
@@ -48,7 +48,6 @@ define(
|
|||||||
'policyService',
|
'policyService',
|
||||||
['allow']
|
['allow']
|
||||||
);
|
);
|
||||||
policyService.allow.andReturn(true);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("validate", function () {
|
describe("validate", function () {
|
||||||
@@ -138,6 +137,7 @@ define(
|
|||||||
);
|
);
|
||||||
createObjectPromise = synchronousPromise(undefined);
|
createObjectPromise = synchronousPromise(undefined);
|
||||||
creationService.createObject.andReturn(createObjectPromise);
|
creationService.createObject.andReturn(createObjectPromise);
|
||||||
|
policyService.allow.andReturn(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("on domain object without composition", function () {
|
describe("on domain object without composition", function () {
|
||||||
@@ -243,7 +243,6 @@ define(
|
|||||||
composition: []
|
composition: []
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
policyService.allow.andReturn(true);
|
|
||||||
|
|
||||||
createObjectPromise = synchronousPromise(newObject);
|
createObjectPromise = synchronousPromise(newObject);
|
||||||
creationService.createObject.andReturn(createObjectPromise);
|
creationService.createObject.andReturn(createObjectPromise);
|
||||||
|
|||||||
Reference in New Issue
Block a user