smartexpect/ts/index.ts
2022-07-24 12:45:29 +02:00

14 lines
360 B
TypeScript

import * as plugins from './smartexpect.plugins.js';
import { Assertion } from './smartexpect.classes.assertion.js';
export const expect = (baseArg: any) => {
const assertion = new Assertion(baseArg, 'sync');
return assertion;
};
export const expectAsync = (baseArg: any) => {
const assertion = new Assertion(baseArg, 'async');
return assertion;
};