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 1
1
/* eslint-disable @typescript-eslint/no-require-imports */
2
2
/* eslint-disable no-undef */
3
- const test_async = require ( "bindings" ) ( "addon.node" ) ;
4
3
const assert = require ( "assert" ) ;
5
4
6
5
module . exports = async ( ) => {
6
+ const test_async = require ( "bindings" ) ( "addon.node" ) ;
7
7
return new Promise ( ( resolve , reject ) => {
8
8
const test = ( ) =>
9
9
new Promise ( ( resolve , reject ) => {
Original file line number Diff line number Diff line change 1
1
/* eslint-disable @typescript-eslint/no-require-imports */
2
2
/* eslint-disable no-undef */
3
- const addon = require ( "bindings" ) ( "addon.node" ) ;
4
3
const assert = require ( "assert" ) ;
5
4
6
5
const toLocaleString = ( text ) => {
@@ -12,6 +11,7 @@ const toLocaleString = (text) => {
12
11
} ;
13
12
14
13
module . exports = async ( ) => {
14
+ const addon = require ( "bindings" ) ( "addon.node" ) ;
15
15
assert . strictEqual ( toLocaleString ( addon . newBuffer ( ) ) , addon . theText ) ;
16
16
assert . strictEqual ( toLocaleString ( addon . newExternalBuffer ( ) ) , addon . theText ) ;
17
17
assert . strictEqual ( toLocaleString ( addon . copyBuffer ( ) ) , addon . theText ) ;
You can’t perform that action at this time.
0 commit comments