mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Make Chai PropertyChange argument 'property' optional (#38405)
Chai allows passing a single argument to its increase,
decrease and change tests:
```ts
let y;
expect(() => { y += 1 }).to.increase(() => y);
```
The type definitions of PropertyChange, used by the three
tests mentionds, did not allow passing a single argument.
This commit is contained in:
parent
bf75bcd274
commit
808267e6e8
2
types/chai/index.d.ts
vendored
2
types/chai/index.d.ts
vendored
@ -379,7 +379,7 @@ declare namespace Chai {
|
||||
}
|
||||
|
||||
interface PropertyChange {
|
||||
(object: Object, property: string, message?: string): Assertion;
|
||||
(object: Object, property?: string, message?: string): Assertion;
|
||||
}
|
||||
|
||||
export interface Assert {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user