mirror of
https://github.com/nasa/openmct.git
synced 2025-06-01 23:20:50 +00:00
[Testing] Test MCT.setAssetPath
This commit is contained in:
parent
6870055033
commit
35c457b7fb
@ -43,7 +43,7 @@ define([
|
|||||||
expect(openmct.plugins).toEqual(plugins);
|
expect(openmct.plugins).toEqual(plugins);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("when started", function () {
|
describe("start", function () {
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
openmct.start();
|
openmct.start();
|
||||||
});
|
});
|
||||||
@ -53,5 +53,25 @@ define([
|
|||||||
expect(mockPlugin2).toHaveBeenCalledWith(openmct);
|
expect(mockPlugin2).toHaveBeenCalledWith(openmct);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe("setAssetPath", function () {
|
||||||
|
var testAssetPath;
|
||||||
|
|
||||||
|
beforeEach(function () {
|
||||||
|
testAssetPath = "some/path";
|
||||||
|
openmct.legacyExtension = jasmine.createSpy('legacyExtension');
|
||||||
|
openmct.setAssetPath(testAssetPath);
|
||||||
|
});
|
||||||
|
|
||||||
|
it("internally configures the path for assets", function () {
|
||||||
|
expect(openmct.legacyExtension).toHaveBeenCalledWith(
|
||||||
|
'constants',
|
||||||
|
{
|
||||||
|
key: "ASSETS_PATH",
|
||||||
|
value: testAssetPath
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user