mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 22:42:24 +00:00
5949580b0a
Add spec for the license controller (used to populate the template for the licenses page, WTD-669) to ensure code coverage.
30 lines
855 B
JavaScript
30 lines
855 B
JavaScript
/*global define,Promise,describe,it,expect,beforeEach,waitsFor,jasmine*/
|
|
|
|
define(
|
|
['../src/LicenseController'],
|
|
function (LicenseController) {
|
|
"use strict";
|
|
|
|
describe("The License controller", function () {
|
|
var testLicenses,
|
|
controller;
|
|
|
|
beforeEach(function () {
|
|
testLicenses = [
|
|
{ name: "A" },
|
|
{ name: "B" },
|
|
{ name: "C" }
|
|
];
|
|
controller = new LicenseController(testLicenses);
|
|
});
|
|
|
|
it("exposes license information", function () {
|
|
// LicenseController is just there to pass licenses[]
|
|
// extensions down to the template.
|
|
expect(controller.licenses()).toEqual(testLicenses);
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
); |