mirror of
https://github.com/nasa/openmct.git
synced 2025-06-23 01:18:57 +00:00
committed by
Andrew Henry
parent
8b715f331c
commit
6d526eaf42
@ -32,14 +32,6 @@ define(
|
||||
mockPromise,
|
||||
handler;
|
||||
|
||||
function asPromise(value) {
|
||||
return (value || {}).then ? value : {
|
||||
then: function (callback) {
|
||||
return asPromise(callback(value));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function makeMockFailure(id, index) {
|
||||
var mockFailure = jasmine.createSpyObj(
|
||||
'failure-' + id,
|
||||
|
Reference in New Issue
Block a user