diff options
Diffstat (limited to 'test/js-native-api/test_constructor/test.js')
-rw-r--r-- | test/js-native-api/test_constructor/test.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/js-native-api/test_constructor/test.js b/test/js-native-api/test_constructor/test.js index a58eac81ad..c5be4c93bf 100644 --- a/test/js-native-api/test_constructor/test.js +++ b/test/js-native-api/test_constructor/test.js @@ -53,10 +53,10 @@ assert.strictEqual(test_object.staticReadonlyAccessor1, undefined); // Verify that passing NULL to napi_define_class() results in the correct // error. assert.deepStrictEqual(TestConstructor.TestDefineClass(), { - envIsNull: 'pass', - nameIsNull: 'pass', - cbIsNull: 'pass', - cbDataIsNull: 'pass', - propertiesIsNull: 'pass', - resultIsNull: 'pass' + envIsNull: 'Invalid argument', + nameIsNull: 'Invalid argument', + cbIsNull: 'Invalid argument', + cbDataIsNull: 'napi_ok', + propertiesIsNull: 'Invalid argument', + resultIsNull: 'Invalid argument' }); |