mirror of
https://github.com/nasa/openmct.git
synced 2024-12-23 06:52:24 +00:00
23 lines
596 B
JavaScript
23 lines
596 B
JavaScript
|
/*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');
|
||
|
});
|
||
|
|
||
|
});
|
||
|
}
|
||
|
);
|