mirror of
https://github.com/nasa/openmct.git
synced 2025-06-21 08:39:59 +00:00
Merge branch 'open316' into open199
This commit is contained in:
@ -157,7 +157,7 @@ define(
|
|||||||
};
|
};
|
||||||
|
|
||||||
TypeImpl.prototype.getInitialModel = function () {
|
TypeImpl.prototype.getInitialModel = function () {
|
||||||
return this.typeDef.model || {};
|
return JSON.parse(JSON.stringify(this.typeDef.model || {}));
|
||||||
};
|
};
|
||||||
|
|
||||||
TypeImpl.prototype.getDefinition = function () {
|
TypeImpl.prototype.getDefinition = function () {
|
||||||
|
@ -101,6 +101,10 @@ define(
|
|||||||
expect(type.getInitialModel().someKey).toEqual("some value");
|
expect(type.getInitialModel().someKey).toEqual("some value");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("provides a fresh initial model each time", function () {
|
||||||
|
expect(type.getInitialModel().someKey).toEqual("some value");
|
||||||
|
});
|
||||||
|
|
||||||
it("provides type properties", function () {
|
it("provides type properties", function () {
|
||||||
expect(type.getProperties().length).toEqual(1);
|
expect(type.getProperties().length).toEqual(1);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user