[Time Conductor] Update PlotController spec

...and add check to updateValues in PlotController, to reflect
changes made to restore support for domain switching.
This commit is contained in:
Victor Woeltjen
2015-10-27 15:52:11 -07:00
parent 2ee53b17db
commit bd8bbc6e8f
2 changed files with 8 additions and 6 deletions

View File

@ -169,8 +169,9 @@ define(
mockDomainObject
]);
// Make an object available
// Make an object available; invoke handler's callback
mockScope.$watch.mostRecentCall.args[1](mockDomainObject);
mockHandler.handle.mostRecentCall.args[1]();
expect(controller.getModeOptions().length).toEqual(1);
@ -181,8 +182,9 @@ define(
mockDomainObject
]);
// Make an object available
// Make an object available; invoke handler's callback
mockScope.$watch.mostRecentCall.args[1](mockDomainObject);
mockHandler.handle.mostRecentCall.args[1]();
expect(controller.getModeOptions().length).toEqual(2);
});