fix(Assertion): Improve toHaveProperty alias by forwarding arguments correctly for intuitive object property assertions
This commit is contained in:
@ -5,6 +5,7 @@ tap.test('toHaveProperty nested path via dot notation', async () => {
|
||||
const testObject = { level1: { level2: { level3: 'value' }}, publicTest: 'hi' };
|
||||
|
||||
smartexpect.expect(testObject).object.toHaveProperty('publicTest');
|
||||
smartexpect.expect(testObject).toHaveProperty('publicTest');
|
||||
// Existence check
|
||||
smartexpect.expect(testObject).object.toHaveProperty('level1.level2.level3');
|
||||
// Value check
|
||||
|
Reference in New Issue
Block a user