Skip to content

Instantly share code, notes, and snippets.

@chaser92
Created February 9, 2015 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chaser92/a4e1aaba704e5b971efc to your computer and use it in GitHub Desktop.
Save chaser92/a4e1aaba704e5b971efc to your computer and use it in GitHub Desktop.
it ("should call containsWatch upon onMeasures() called", function() {
watchDataStore.containsWatch = sinon.stub().returns(when(null));
return trendsD.onMeasures([{
central: "centrala1",
element: "element",
property: "property",
value: 12
}], false)
.then(function() {
expect(watchDataStore.containsWatch.callCount).to.equal(1);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment