mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
feat(expect.js): bump v0.3.1 adding withArgs
This commit is contained in:
@@ -101,6 +101,12 @@ function test_throwException() {
|
||||
expect(fn).to.not.throwException();
|
||||
}
|
||||
|
||||
function test_withArgs() {
|
||||
var fn = () => {};
|
||||
expect(fn).withArgs().to.throwException();
|
||||
expect(fn).withArgs(true, 1, '').to.throwException();
|
||||
}
|
||||
|
||||
function test_within() {
|
||||
expect(1).to.be.within(0, Infinity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user