Skip to content

Commit f981fef

Browse files
committed
ffi: check only error codes in assertions
Signed-off-by: HoonDongKang <d159123@naver.com>
1 parent c44f0f6 commit f981fef

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎test/ffi/test-ffi-dynamic-library.js‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,21 +436,18 @@ test('dynamic library APIs validate failures and bad signatures', () => {
436436
lib.getFunction('add_i32', { return: 1, arguments: [] });
437437
}, {
438438
code: 'ERR_INVALID_ARG_TYPE',
439-
message: 'Return value type of function add_i32 must be a string',
440439
});
441440

442441
assert.throws(() => {
443442
lib.getFunction('add_i32', { return: 'i32', arguments: 'i32' });
444443
}, {
445444
code: 'ERR_INVALID_ARG_TYPE',
446-
message: 'Arguments list of function add_i32 must be an array',
447445
});
448446

449447
assert.throws(() => {
450448
lib.getFunction('add_i32', { return: 'i32', arguments: [1] });
451449
}, {
452450
code: 'ERR_INVALID_ARG_TYPE',
453-
message: 'Argument 0 of function add_i32 must be a string',
454451
});
455452

456453
assert.throws(() => {

0 commit comments

Comments
 (0)