Created
June 19, 2013 11:04
-
-
Save magnars/5813506 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(function () { | |
"use strict"; | |
buster.testCase("refute.calledWith fails badly in IE8", { | |
"it's just crazy dude": function () { | |
var spy = this.spy(); | |
spy("'actual-value'"); | |
refute.calledWith(spy, "'test-value'"); | |
} | |
}); | |
}()); |
The same happens with assert.calledWith
- in that it always passes.
All these pass in the example above:
assert.calledWith(spy);
assert.calledWith(spy, "'actual-value'");
assert.calledWith(spy, "'wrong-value'");
assert.calledWith(spy, "'wrong-value'", "more", "wrong", "stuff");
assert.calledWith(spy, Infinity);
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Results in