diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-02-10 18:20:47 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 12:50:47 +0000 |
commit | 4baaa246a256a82e725ddf07015bad72ec13f3e5 (patch) | |
tree | 6c98c16cc443b76700357e6fc9edcfa133ac5940 /test_napi/properties_test.js | |
parent | 1740e0fc3650dbf072ada4a530618db2a84a0854 (diff) |
fix(cli/napi): handle all property variants in napi_define_properties (#17680)
Fixes https://github.com/denoland/deno/issues/17509
This fixes the bug that blocked loading `fsevents` in Deno.
Diffstat (limited to 'test_napi/properties_test.js')
-rw-r--r-- | test_napi/properties_test.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test_napi/properties_test.js b/test_napi/properties_test.js index 78268ba15..36ede1033 100644 --- a/test_napi/properties_test.js +++ b/test_napi/properties_test.js @@ -5,11 +5,14 @@ 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); + assertEquals(properties.test_property_r, 1); + + // https://github.com/denoland/deno/issues/17509 + assertEquals(properties.test_simple_property, { + nice: 69, + }); }); |