mirror of
https://github.com/nasa/openmct.git
synced 2024-12-21 14:07:50 +00:00
6814567116
Update existing tests to account for changes from WTD-880.
33 lines
1002 B
JavaScript
33 lines
1002 B
JavaScript
/*global define,describe,it,expect,beforeEach,jasmine*/
|
|
|
|
define(
|
|
['../../src/elements/ElementProxies'],
|
|
function (ElementProxies) {
|
|
"use strict";
|
|
|
|
// Expect these element types to have proxies
|
|
var ELEMENT_TYPES = [
|
|
"fixed.telemetry",
|
|
"fixed.line",
|
|
"fixed.box",
|
|
"fixed.text",
|
|
"fixed.image"
|
|
];
|
|
|
|
// Verify that the set of proxies exposed matches the specific
|
|
// list above.
|
|
describe("The set of element proxies", function () {
|
|
ELEMENT_TYPES.forEach(function (t) {
|
|
it("exposes a proxy wrapper for " + t + " elements", function () {
|
|
expect(typeof ElementProxies[t]).toEqual('function');
|
|
});
|
|
});
|
|
|
|
it("exposes no additional wrappers", function () {
|
|
expect(Object.keys(ElementProxies).length)
|
|
.toEqual(ELEMENT_TYPES.length);
|
|
});
|
|
});
|
|
}
|
|
);
|