mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 22:58:14 +00:00
[Code Style] Run gulp fixstyle
...to apply code style settings from #142.
This commit is contained in:
@ -53,17 +53,21 @@ define(
|
||||
var result;
|
||||
|
||||
// Load and get the result
|
||||
loader.load("xyz.js").then(function (v) { result = v; });
|
||||
loader.load("xyz.js").then(function (v) {
|
||||
result = v;
|
||||
});
|
||||
|
||||
expect(result).toBeUndefined();
|
||||
|
||||
required.fulfill("test result");
|
||||
|
||||
waitsFor(
|
||||
function () { return result !== undefined; },
|
||||
"promise resolution",
|
||||
250
|
||||
);
|
||||
function () {
|
||||
return result !== undefined;
|
||||
},
|
||||
"promise resolution",
|
||||
250
|
||||
);
|
||||
|
||||
runs(function () {
|
||||
expect(result).toEqual("test result");
|
||||
@ -76,19 +80,25 @@ define(
|
||||
|
||||
// Load and get the result
|
||||
loader.load("xyz.js").then(
|
||||
function (v) { result = v; },
|
||||
function (v) { rejection = v; }
|
||||
);
|
||||
function (v) {
|
||||
result = v;
|
||||
},
|
||||
function (v) {
|
||||
rejection = v;
|
||||
}
|
||||
);
|
||||
|
||||
expect(result).toBeUndefined();
|
||||
|
||||
required.reject("test result");
|
||||
|
||||
waitsFor(
|
||||
function () { return rejection !== undefined; },
|
||||
"promise resolution",
|
||||
250
|
||||
);
|
||||
function () {
|
||||
return rejection !== undefined;
|
||||
},
|
||||
"promise resolution",
|
||||
250
|
||||
);
|
||||
|
||||
runs(function () {
|
||||
expect(result).toBeUndefined();
|
||||
@ -98,4 +108,4 @@ define(
|
||||
|
||||
});
|
||||
}
|
||||
);
|
||||
);
|
||||
|
Reference in New Issue
Block a user