mirror of
https://github.com/nasa/openmct.git
synced 2025-01-19 03:06:54 +00:00
[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:
parent
6dbccd5000
commit
082122ddec
@ -48,7 +48,6 @@ define(
|
||||
'policyService',
|
||||
['allow']
|
||||
);
|
||||
policyService.allow.andReturn(true);
|
||||
});
|
||||
|
||||
describe("validate", function () {
|
||||
@ -138,6 +137,7 @@ define(
|
||||
);
|
||||
createObjectPromise = synchronousPromise(undefined);
|
||||
creationService.createObject.andReturn(createObjectPromise);
|
||||
policyService.allow.andReturn(true);
|
||||
});
|
||||
|
||||
describe("on domain object without composition", function () {
|
||||
@ -243,7 +243,6 @@ define(
|
||||
composition: []
|
||||
}
|
||||
});
|
||||
policyService.allow.andReturn(true);
|
||||
|
||||
createObjectPromise = synchronousPromise(newObject);
|
||||
creationService.createObject.andReturn(createObjectPromise);
|
||||
|
Loading…
Reference in New Issue
Block a user