Created
February 9, 2015 15:16
-
-
Save chaser92/a4e1aaba704e5b971efc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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