From a051a7f7bc8dab2a4360c146d08b549cbcf17b8d Mon Sep 17 00:00:00 2001 From: Cedric Vangout Date: Sat, 8 May 2021 16:38:18 +0400 Subject: feat(plugin): add tests for plugin args (#10529) --- test_plugin/tests/test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test_plugin/tests/test.js') diff --git a/test_plugin/tests/test.js b/test_plugin/tests/test.js index 716b2ff9a..5e0e6d5a4 100644 --- a/test_plugin/tests/test.js +++ b/test_plugin/tests/test.js @@ -42,7 +42,7 @@ if ( function runTestSync() { const result = Deno.core.opSync( "op_test_sync", - null, + { val: "1" }, new Uint8Array([116, 101, 115, 116]), ); @@ -56,7 +56,7 @@ function runTestSync() { async function runTestAsync() { const promise = Deno.core.opAsync( "op_test_async", - null, + { val: "1" }, new Uint8Array([49, 50, 51]), ); @@ -95,7 +95,7 @@ function runTestResourceTable() { function runTestOpCount() { const start = Deno.metrics(); - Deno.core.opSync("op_test_sync"); + Deno.core.opSync("op_test_sync", { val: "1" }); const end = Deno.metrics(); -- cgit v1.2.3