BREAKING CHANGE(docs): Update documentation and examples to unify async and sync assertions, add custom matcher guides, and update package configuration
This commit is contained in:
20
ts/namespaces/date.ts
Normal file
20
ts/namespaces/date.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import { Assertion } from '../smartexpect.classes.assertion.js';
|
||||
|
||||
/**
|
||||
* Namespace for date-specific matchers
|
||||
*/
|
||||
export class DateMatchers {
|
||||
constructor(private assertion: Assertion<Date>) {}
|
||||
|
||||
toBeDate() {
|
||||
return this.assertion.toBeDate();
|
||||
}
|
||||
|
||||
toBeBeforeDate(date: Date) {
|
||||
return this.assertion.toBeBeforeDate(date);
|
||||
}
|
||||
|
||||
toBeAfterDate(date: Date) {
|
||||
return this.assertion.toBeAfterDate(date);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user