diff options
Diffstat (limited to 'test_napi/properties_test.js')
-rw-r--r-- | test_napi/properties_test.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test_napi/properties_test.js b/test_napi/properties_test.js index 36ede1033..b5f0c0794 100644 --- a/test_napi/properties_test.js +++ b/test_napi/properties_test.js @@ -15,4 +15,10 @@ Deno.test("napi properties", () => { assertEquals(properties.test_simple_property, { nice: 69, }); + + assertEquals(properties.key_v8_string, 1); + const symbols = Object.getOwnPropertySymbols(properties); + assertEquals(symbols.length, 1); + assertEquals(symbols[0].description, "key_v8_symbol"); + assertEquals(properties[symbols[0]], 1); }); |