12 lines
296 B
TypeScript
12 lines
296 B
TypeScript
|
import { Assertion } from '../smartexpect.classes.assertion.js';
|
||
|
|
||
|
/**
|
||
|
* Namespace for function-specific matchers
|
||
|
*/
|
||
|
export class FunctionMatchers {
|
||
|
constructor(private assertion: Assertion<Function>) {}
|
||
|
|
||
|
toThrow(expectedError?: any) {
|
||
|
return this.assertion.toThrow(expectedError);
|
||
|
}
|
||
|
}
|