2022-07-24 12:45:29 +02:00
|
|
|
import { Assertion } from './smartexpect.classes.assertion.js';
|
2022-01-21 03:33:24 +01:00
|
|
|
|
|
|
|
export const expect = (baseArg: any) => {
|
|
|
|
const assertion = new Assertion(baseArg, 'sync');
|
|
|
|
return assertion;
|
2022-07-24 12:45:29 +02:00
|
|
|
};
|
2022-01-21 03:33:24 +01:00
|
|
|
|
|
|
|
export const expectAsync = (baseArg: any) => {
|
|
|
|
const assertion = new Assertion(baseArg, 'async');
|
|
|
|
return assertion;
|
2022-07-24 12:45:29 +02:00
|
|
|
};
|
2024-08-24 01:36:23 +02:00
|
|
|
|