File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/node-addon-examples/tests Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 11/* eslint-disable @typescript-eslint/no-require-imports */
22/* eslint-disable no-undef */
3- const test_async = require ( "bindings" ) ( "addon.node" ) ;
43const assert = require ( "assert" ) ;
54
65module . exports = async ( ) => {
6+ const test_async = require ( "bindings" ) ( "addon.node" ) ;
77 return new Promise ( ( resolve , reject ) => {
88 const test = ( ) =>
99 new Promise ( ( resolve , reject ) => {
Original file line number Diff line number Diff line change 11/* eslint-disable @typescript-eslint/no-require-imports */
22/* eslint-disable no-undef */
3- const addon = require ( "bindings" ) ( "addon.node" ) ;
43const assert = require ( "assert" ) ;
54
65const toLocaleString = ( text ) => {
@@ -12,6 +11,7 @@ const toLocaleString = (text) => {
1211} ;
1312
1413module . exports = async ( ) => {
14+ const addon = require ( "bindings" ) ( "addon.node" ) ;
1515 assert . strictEqual ( toLocaleString ( addon . newBuffer ( ) ) , addon . theText ) ;
1616 assert . strictEqual ( toLocaleString ( addon . newExternalBuffer ( ) ) , addon . theText ) ;
1717 assert . strictEqual ( toLocaleString ( addon . copyBuffer ( ) ) , addon . theText ) ;
You can’t perform that action at this time.
0 commit comments