feat(Assertion): Add log method to Assertion class
This commit is contained in:
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
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.'
|
||||
}
|
||||
|
@ -675,4 +675,10 @@ export class Assertion {
|
||||
this.propertyDrillDown.push(indexArg);
|
||||
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