fix(core): update

This commit is contained in:
2023-06-22 11:57:29 +02:00
parent d1be0d8ce2
commit 931a713ae7
7 changed files with 4584 additions and 11498 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smartexpect',
version: '1.0.14',
version: '1.0.15',
description: 'manage expectations in code'
}

View File

@ -118,6 +118,17 @@ export class Assertion {
});
}
public toMatch(comparisonObject: RegExp) {
return this.runCheck(() => {
const result = comparisonObject.test(this.getObjectToTestReference());
if (!result) {
throw new Error(
`${this.baseReference} with drill down ${this.propertyDrillDown} does not equal ${comparisonObject}`
);
}
});
}
public toBeTrue() {
return this.runCheck(() => {
const result =