node/test/addons-napi
Ruben Bridgewater 045b37b32d
test: add eslint rule to verify assertion input
The input for `assert.deepStrictEqual` and similar expect the actual
input first and the expected input as second argument. This verifies
that this is actually done correct in our tests.

This is important so the possible error message actually makes sense.

PR-URL: https://github.com/nodejs/node/pull/20718
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-05-22 14:13:28 -04:00
..
1_hello_world n-api,test: make methods static 2018-05-04 11:49:32 -04:00
2_function_arguments n-api,test: make methods static 2018-05-04 11:49:32 -04:00
3_callbacks n-api,test: make methods static 2018-05-04 11:49:32 -04:00
4_object_factory n-api,test: make methods static 2018-05-04 11:49:32 -04:00
5_function_factory n-api,test: make methods static 2018-05-04 11:49:32 -04:00
6_object_wrap
7_factory_wrap
8_passing_wrapped n-api: back up env before finalize 2018-04-03 09:37:11 -04:00
test_array n-api,test: make methods static 2018-05-04 11:49:32 -04:00
test_async n-api: add napi_fatal_exception 2018-03-20 15:48:14 -04:00
test_buffer n-api,test: make methods static 2018-05-04 11:49:32 -04:00
test_callback_scope
test_cleanup_hook src: add environment cleanup hooks 2018-05-14 19:19:32 +02:00
test_constructor n-api,test: remove superfluous persistent 2018-05-04 11:51:12 -04:00
test_conversions test: add eslint rule to verify assertion input 2018-05-22 14:13:28 -04:00
test_dataview n-api,test: make methods static 2018-05-04 11:49:32 -04:00
test_env_sharing n-api,test: make methods static 2018-05-04 11:49:32 -04:00
test_error test: fix up N-API error test 2018-05-08 18:26:16 -07:00
test_exception n-api: ensure in-module exceptions are propagated 2018-03-27 14:08:24 -04:00
test_fatal n-api,test: make methods static 2018-05-04 11:49:32 -04:00
test_fatal_exception n-api,test: make methods static 2018-05-04 11:49:32 -04:00
test_function n-api,test: make methods static 2018-05-04 11:49:32 -04:00
test_general n-api,test: make methods static 2018-05-04 11:49:32 -04:00
test_handle_scope n-api,test: make methods static 2018-05-04 11:49:32 -04:00
test_make_callback n-api,test: make methods static 2018-05-04 11:49:32 -04:00
test_make_callback_recurse n-api: add missing exception checking 2018-03-16 19:01:24 -04:00
test_new_target n-api,test: make methods static 2018-05-04 11:49:32 -04:00
test_number n-api,test: make methods static 2018-05-04 11:49:32 -04:00
test_object n-api,test: make methods static 2018-05-04 11:49:32 -04:00
test_promise n-api,test: make methods static 2018-05-04 11:49:32 -04:00
test_properties n-api,test: make methods static 2018-05-04 11:49:32 -04:00
test_reference n-api,test: make method static 2018-05-04 11:51:12 -04:00
test_string n-api,test: make methods static 2018-05-04 11:49:32 -04:00
test_symbol n-api: remove unused Test function 2018-05-04 11:51:12 -04:00
test_typedarray n-api,test: make methods static 2018-05-04 11:49:32 -04:00
test_uv_loop
.gitignore
common.h
testcfg.py