11/* eslint-disable @typescript-eslint/no-require-imports */
22/* eslint-disable no-undef */
3- const assert = require ( "assert" ) ;
43const addon = require ( "bindings" ) ( "addon.node" ) ;
4+ const assert = require ( "assert" ) ;
55
66const toLocaleString = ( text ) => {
77 return text
@@ -11,13 +11,13 @@ const toLocaleString = (text) => {
1111 . join ( "" ) ;
1212} ;
1313
14- module . exports = ( ) => {
15- assert . strictEqual ( toLocaleString ( addon . newBuffer ( ) ) , addon . theText ) ;
16- assert . strictEqual ( toLocaleString ( addon . newExternalBuffer ( ) ) , addon . theText ) ;
17- assert . strictEqual ( toLocaleString ( addon . copyBuffer ( ) ) , addon . theText ) ;
14+ module . exports = async ( ) => {
15+ console . log ( toLocaleString ( addon . newBuffer ( ) ) , addon . theText ) ;
16+ console . log ( toLocaleString ( addon . newExternalBuffer ( ) ) , addon . theText ) ;
17+ console . log ( toLocaleString ( addon . copyBuffer ( ) ) , addon . theText ) ;
1818 let buffer = addon . staticBuffer ( ) ;
19- assert . strictEqual ( addon . bufferHasInstance ( buffer ) , true ) ;
20- assert . strictEqual ( addon . bufferInfo ( buffer ) , true ) ;
19+ console . log ( addon . bufferHasInstance ( buffer ) , true ) ;
20+ console . log ( addon . bufferInfo ( buffer ) , true ) ;
2121 addon . invalidObjectAsBuffer ( { } ) ;
2222
2323 // TODO: Add gc tests
0 commit comments