fix(core): update

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

11488
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -14,17 +14,18 @@
"buildDocs": "tsdoc"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.63",
"@gitzone/tsbundle": "^2.0.5",
"@gitzone/tstest": "^1.0.71",
"@pushrocks/tapbundle": "^5.0.3",
"@types/node": "^18.0.6",
"@gitzone/tsbuild": "^2.1.66",
"@gitzone/tsbundle": "^2.0.8",
"@gitzone/tsrun": "^1.2.42",
"@gitzone/tstest": "^1.0.74",
"@pushrocks/tapbundle": "^5.0.4",
"@types/node": "^20.3.1",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.15.0"
"tslint-config-prettier": "^1.18.0"
},
"dependencies": {
"@pushrocks/smartdelay": "^2.0.13",
"@pushrocks/smartpromise": "^3.1.7",
"@pushrocks/smartdelay": "^3.0.1",
"@pushrocks/smartpromise": "^4.0.2",
"fast-deep-equal": "^3.1.3"
},
"browserslist": [

4556
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,11 @@ tap.test('should check equality', async () => {
smartexpect.expect('hithere').not.toEqual('hithere2');
});
tap.test('should check for regexp matching', async () => {
smartexpect.expect('hithere').toMatch(/hi/);
smartexpect.expect('hithere').not.toMatch(/ho/);
})
tap.test('should correctly state property presence', async () => {
const testObject = {
aprop: 'hello',

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 =

View File

@ -5,6 +5,7 @@
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "nodenext",
"esModuleInterop": true
"esModuleInterop": true,
"verbatimModuleSyntax": true,
}
}