Merge pull request #942 from nasa/persist-graph-toggles-908

[Timeline] Persist resource graph toggles
This commit is contained in:
Andrew Henry
2016-05-20 13:27:41 -07:00
4 changed files with 21 additions and 5 deletions

View File

@@ -194,6 +194,21 @@ define(
.toHaveBeenCalledWith(testViews[1]);
});
it("exposes configuration before changing templates", function () {
var observedConfiguration;
mockChangeTemplate.andCallFake(function () {
observedConfiguration = mockScope.configuration;
});
mockScope.key = "xyz";
mockScope.domainObject = mockDomainObject;
fireWatch('key', mockScope.key);
fireWatch('domainObject', mockDomainObject);
expect(observedConfiguration).toBeDefined();
});
it("does not load templates until there is an object", function () {
mockScope.key = "xyz";