mirror of
https://github.com/nasa/openmct.git
synced 2025-06-06 17:31:40 +00:00
[Edit] Add empty spec for mct-before-unload
Begin testing mct-before-unload directive, used to confirm navigation away from unsaved changes, WTD-1035
This commit is contained in:
parent
0b0753df31
commit
2e82cffa5a
@ -0,0 +1,23 @@
|
|||||||
|
/*global define,describe,it,expect,beforeEach,jasmine*/
|
||||||
|
|
||||||
|
define(
|
||||||
|
["../../src/directives/MCTBeforeUnload"],
|
||||||
|
function (MCTBeforeUnload) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
describe("The mct-before-unload directive", function () {
|
||||||
|
var mockWindow,
|
||||||
|
directive;
|
||||||
|
|
||||||
|
beforeEach(function () {
|
||||||
|
mockWindow = {};
|
||||||
|
directive = new MCTBeforeUnload(mockWindow);
|
||||||
|
});
|
||||||
|
|
||||||
|
it("can be used only as an attribute", function () {
|
||||||
|
expect(directive.restrict).toEqual('A');
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
);
|
@ -14,6 +14,7 @@
|
|||||||
"controllers/EditActionController",
|
"controllers/EditActionController",
|
||||||
"controllers/EditController",
|
"controllers/EditController",
|
||||||
"controllers/EditPanesController",
|
"controllers/EditPanesController",
|
||||||
|
"directives/MCTBeforeUnload",
|
||||||
"objects/EditableDomainObject",
|
"objects/EditableDomainObject",
|
||||||
"objects/EditableDomainObjectCache",
|
"objects/EditableDomainObjectCache",
|
||||||
"objects/EditableModelCache",
|
"objects/EditableModelCache",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user