diff options
Diffstat (limited to 'test_napi/properties_test.js')
-rw-r--r-- | test_napi/properties_test.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test_napi/properties_test.js b/test_napi/properties_test.js new file mode 100644 index 000000000..b24c5649e --- /dev/null +++ b/test_napi/properties_test.js @@ -0,0 +1,15 @@ +// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license. + +import { assertEquals, loadTestLibrary } from "./common.js"; + +const properties = loadTestLibrary(); + +Deno.test("napi properties", () => { + properties.test_property_rw = 1; + assertEquals(properties.test_property_rw, 1); + properties.test_property_rw = 2; + assertEquals(properties.test_property_rw, 2); + + // assertEquals(properties.test_property_r, 2); + // assertRejects(() => properties.test_property_r = 3); +}); |