这是indexloc提供的服务,不要输入任何密码
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions types/sinon/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -793,15 +793,9 @@ declare namespace Sinon {

interface SinonAssert {
// Properties
/**
* Defaults to AssertError.
*/
failException: string;
/**
* Every assertion fails by calling this method.
* By default it throws an error of type sinon.assert.failException.
* If the test framework looks for assertion errors by checking for a specific exception, you can simply override the kind of exception thrown.
* If that does not fit with your testing framework of choice, override the fail method to do the right thing.
* If your testing framework of choice looks for assertion errors by checking for a specific exception, you can override the `fail` method to do the right thing.
*/
fail(message?: string): void; // Overridable
/**
Expand Down
2 changes: 1 addition & 1 deletion types/sinon/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@types/sinon",
"version": "20.0.9999",
"version": "21.0.9999",
"projects": [
"https://sinonjs.org"
],
Expand Down