Skip to content

Instantly share code, notes, and snippets.

@pierrecholhot
Last active August 29, 2015 14:19
Show Gist options
  • Save pierrecholhot/69b233ba183fd3bbe9b6 to your computer and use it in GitHub Desktop.
Save pierrecholhot/69b233ba183fd3bbe9b6 to your computer and use it in GitHub Desktop.
describe('when `hydrate` method is invoked', function() {
beforeEach(function() {
stateStore = new StateStore();
});
it('should extend `secretObject[namespace]`', function() {
spyOn(_, 'extend');
stateStore.init();
stateStore.hydrate();
expect(_.extend)
.toHaveBeenCalledWith(stateStore.settings.SECRET[stateStore.namespace], stateStore.currentState);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment