mirror of
https://github.com/nasa/openmct.git
synced 2025-06-13 04:38:15 +00:00
[Build] Allow bundles to be removed
Allow bundles to be removed by: * Waiting for explicit activation before bootstrapping, providing a time period when bundles could be removed. * Adding a remove method to BundleRegistry
This commit is contained in:
@ -68,6 +68,21 @@ define(['./BundleRegistry'], function (BundleRegistry) {
|
||||
expect(bundleRegistry.get(testPath))
|
||||
.toBe(testBundleDef);
|
||||
});
|
||||
|
||||
describe("and then removed", function () {
|
||||
beforeEach(function () {
|
||||
bundleRegistry.remove(testPath);
|
||||
});
|
||||
|
||||
it("appears empty again", function () {
|
||||
expect(bundleRegistry.list()).toEqual([]);
|
||||
});
|
||||
|
||||
it("does not contain the removed bundle", function () {
|
||||
expect(bundleRegistry.contains(testPath))
|
||||
.toBe(false);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user