fix(core): update
This commit is contained in:
parent
d1be0d8ce2
commit
931a713ae7
11488
package-lock.json
generated
11488
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
@ -14,17 +14,18 @@
|
|||||||
"buildDocs": "tsdoc"
|
"buildDocs": "tsdoc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.63",
|
"@gitzone/tsbuild": "^2.1.66",
|
||||||
"@gitzone/tsbundle": "^2.0.5",
|
"@gitzone/tsbundle": "^2.0.8",
|
||||||
"@gitzone/tstest": "^1.0.71",
|
"@gitzone/tsrun": "^1.2.42",
|
||||||
"@pushrocks/tapbundle": "^5.0.3",
|
"@gitzone/tstest": "^1.0.74",
|
||||||
"@types/node": "^18.0.6",
|
"@pushrocks/tapbundle": "^5.0.4",
|
||||||
|
"@types/node": "^20.3.1",
|
||||||
"tslint": "^6.1.3",
|
"tslint": "^6.1.3",
|
||||||
"tslint-config-prettier": "^1.15.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartdelay": "^2.0.13",
|
"@pushrocks/smartdelay": "^3.0.1",
|
||||||
"@pushrocks/smartpromise": "^3.1.7",
|
"@pushrocks/smartpromise": "^4.0.2",
|
||||||
"fast-deep-equal": "^3.1.3"
|
"fast-deep-equal": "^3.1.3"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
|
4556
pnpm-lock.yaml
generated
Normal file
4556
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -22,6 +22,11 @@ tap.test('should check equality', async () => {
|
|||||||
smartexpect.expect('hithere').not.toEqual('hithere2');
|
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 () => {
|
tap.test('should correctly state property presence', async () => {
|
||||||
const testObject = {
|
const testObject = {
|
||||||
aprop: 'hello',
|
aprop: 'hello',
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/smartexpect',
|
name: '@pushrocks/smartexpect',
|
||||||
version: '1.0.14',
|
version: '1.0.15',
|
||||||
description: 'manage expectations in code'
|
description: 'manage expectations in code'
|
||||||
}
|
}
|
||||||
|
@ -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() {
|
public toBeTrue() {
|
||||||
return this.runCheck(() => {
|
return this.runCheck(() => {
|
||||||
const result =
|
const result =
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"module": "ES2022",
|
"module": "ES2022",
|
||||||
"moduleResolution": "nodenext",
|
"moduleResolution": "nodenext",
|
||||||
"esModuleInterop": true
|
"esModuleInterop": true,
|
||||||
|
"verbatimModuleSyntax": true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user