Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
7ae5b4378a | |||
1979d8dd9c |
@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2024-12-30 - 1.4.0 - feat(Assertion)
|
||||||
|
Add log method to Assertion class
|
||||||
|
|
||||||
|
- Introduced a log method in the Assertion class to output assertion context.
|
||||||
|
|
||||||
## 2024-12-30 - 1.3.0 - feat(Assertion)
|
## 2024-12-30 - 1.3.0 - feat(Assertion)
|
||||||
Refactor Assertion class for better error handling and code clarity
|
Refactor Assertion class for better error handling and code clarity
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/smartexpect",
|
"name": "@push.rocks/smartexpect",
|
||||||
"version": "1.3.0",
|
"version": "1.4.0",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "A testing library to manage expectations in code, offering both synchronous and asynchronous assertion methods.",
|
"description": "A testing library to manage expectations in code, offering both synchronous and asynchronous assertion methods.",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartexpect',
|
name: '@push.rocks/smartexpect',
|
||||||
version: '1.3.0',
|
version: '1.4.0',
|
||||||
description: 'A testing library to manage expectations in code, offering both synchronous and asynchronous assertion methods.'
|
description: 'A testing library to manage expectations in code, offering both synchronous and asynchronous assertion methods.'
|
||||||
}
|
}
|
||||||
|
@ -675,4 +675,10 @@ export class Assertion {
|
|||||||
this.propertyDrillDown.push(indexArg);
|
this.propertyDrillDown.push(indexArg);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public log() {
|
||||||
|
console.log(`this is the object to test:`);
|
||||||
|
console.log(JSON.stringify(this.getObjectToTestReference(), null, 2));
|
||||||
|
return this;
|
||||||
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user