feat(assertions): Add custom fail and success messages for assertions

This commit is contained in:
2024-08-24 01:36:23 +02:00
parent 04e3c1a9ac
commit f83c64e1d4
4 changed files with 63 additions and 45 deletions

View File

@ -1,5 +1,3 @@
import * as plugins from './smartexpect.plugins.js';
import { Assertion } from './smartexpect.classes.assertion.js';
export const expect = (baseArg: any) => {
@ -11,3 +9,4 @@ export const expectAsync = (baseArg: any) => {
const assertion = new Assertion(baseArg, 'async');
return assertion;
};