Skip to content

Commit 0c8b5d5

Browse files
furstenheimevanlucas
authored andcommitted
test: fixed typos in napi test
PR-URL: #18148 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 217ddd8 commit 0c8b5d5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/addons-napi/test_symbol/test_symbol.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ napi_value Test(napi_env env, napi_callback_info info) {
1212
NAPI_CALL(env, napi_typeof(env, args[0], &valuetype));
1313

1414
NAPI_ASSERT(env, valuetype == napi_symbol,
15-
"Wrong type of argments. Expects a symbol.");
15+
"Wrong type of arguments. Expects a symbol.");
1616

1717
char buffer[128];
1818
size_t buffer_size = 128;

test/addons-napi/test_typedarray/test_typedarray.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ napi_value Multiply(napi_env env, napi_callback_info info) {
1313
NAPI_CALL(env, napi_typeof(env, args[0], &valuetype0));
1414

1515
NAPI_ASSERT(env, valuetype0 == napi_object,
16-
"Wrong type of argments. Expects a typed array as first argument.");
16+
"Wrong type of arguments. Expects a typed array as first argument.");
1717

1818
napi_value input_array = args[0];
1919
bool is_typedarray;
2020
NAPI_CALL(env, napi_is_typedarray(env, input_array, &is_typedarray));
2121

2222
NAPI_ASSERT(env, is_typedarray,
23-
"Wrong type of argments. Expects a typed array as first argument.");
23+
"Wrong type of arguments. Expects a typed array as first argument.");
2424

2525
napi_valuetype valuetype1;
2626
NAPI_CALL(env, napi_typeof(env, args[1], &valuetype1));
2727

2828
NAPI_ASSERT(env, valuetype1 == napi_number,
29-
"Wrong type of argments. Expects a number as second argument.");
29+
"Wrong type of arguments. Expects a number as second argument.");
3030

3131
double multiplier;
3232
NAPI_CALL(env, napi_get_value_double(env, args[1], &multiplier));
@@ -108,26 +108,26 @@ napi_value CreateTypedArray(napi_env env, napi_callback_info info) {
108108
NAPI_CALL(env, napi_typeof(env, input_array, &valuetype0));
109109

110110
NAPI_ASSERT(env, valuetype0 == napi_object,
111-
"Wrong type of argments. Expects a typed array as first argument.");
111+
"Wrong type of arguments. Expects a typed array as first argument.");
112112

113113
bool is_typedarray;
114114
NAPI_CALL(env, napi_is_typedarray(env, input_array, &is_typedarray));
115115

116116
NAPI_ASSERT(env, is_typedarray,
117-
"Wrong type of argments. Expects a typed array as first argument.");
117+
"Wrong type of arguments. Expects a typed array as first argument.");
118118

119119
napi_valuetype valuetype1;
120120
napi_value input_buffer = args[1];
121121
NAPI_CALL(env, napi_typeof(env, input_buffer, &valuetype1));
122122

123123
NAPI_ASSERT(env, valuetype1 == napi_object,
124-
"Wrong type of argments. Expects an array buffer as second argument.");
124+
"Wrong type of arguments. Expects an array buffer as second argument.");
125125

126126
bool is_arraybuffer;
127127
NAPI_CALL(env, napi_is_arraybuffer(env, input_buffer, &is_arraybuffer));
128128

129129
NAPI_ASSERT(env, is_arraybuffer,
130-
"Wrong type of argments. Expects an array buffer as second argument.");
130+
"Wrong type of arguments. Expects an array buffer as second argument.");
131131

132132
napi_typedarray_type type;
133133
napi_value in_array_buffer;

0 commit comments

Comments
 (0)