smartexpect/ts/index.ts

14 lines
360 B
TypeScript
Raw Permalink Normal View History

2022-07-24 10:45:29 +00:00
import * as plugins from './smartexpect.plugins.js';
2022-01-20 21:40:38 +00:00
2022-07-24 10:45:29 +00:00
import { Assertion } from './smartexpect.classes.assertion.js';
2022-01-21 02:33:24 +00:00
export const expect = (baseArg: any) => {
const assertion = new Assertion(baseArg, 'sync');
return assertion;
2022-07-24 10:45:29 +00:00
};
2022-01-21 02:33:24 +00:00
export const expectAsync = (baseArg: any) => {
const assertion = new Assertion(baseArg, 'async');
return assertion;
2022-07-24 10:45:29 +00:00
};