Skip to content

Commit d1c6519

Browse files
test: asserting object is created with specified property
Co-authored-by: Chengzhong Wu <[email protected]>
1 parent 29959e7 commit d1c6519

File tree

1 file changed

+1
-0
lines changed
  • test/js-native-api/test_object

1 file changed

+1
-0
lines changed

test/js-native-api/test_object/test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ assert.deepStrictEqual(test_object.TestGetProperty(), {
404404

405405
const objectWithCustomPrototype = test_object.TestCreateObjectWithCustomPrototype();
406406
assert.strictEqual(typeof objectWithCustomPrototype, 'object');
407+
assert.deepStrictEqual(Object.getOwnPropertyNames(objectWithCustomPrototype), ['value']);
407408
assert.strictEqual(objectWithCustomPrototype.value, 42);
408409
assert.strictEqual(typeof objectWithCustomPrototype.test, 'function');
409410
}

0 commit comments

Comments
 (0)