File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
packages/npm-packages/ruby-wasm-wasi/test Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,10 @@ import { initRubyVM } from "./init";
44describe ( "Manipulation of JS from Ruby" , ( ) => {
55 jest . setTimeout ( 10 /*sec*/ * 1000 ) ;
66
7- const Qtrue = 0x02 ;
87 test ( `require "js"` , async ( ) => {
98 const vm = await initRubyVM ( ) ;
109 const result = vm . eval ( `require "js"` ) ;
11- expect ( ( result as any ) . inner . _wasm_val ) . toBe ( Qtrue ) ;
10+ expect ( result . toString ( ) ) . toBe ( "true" ) ;
1211 } ) ;
1312
1413 test ( "JS::Object#method_missing with block" , async ( ) => {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ describe("RubyVM", () => {
55 test ( "empty expression" , async ( ) => {
66 const vm = await initRubyVM ( ) ;
77 const result = vm . eval ( "" ) ;
8- expect ( ( result as any ) . inner . _wasm_val ) . toBe ( /* Qnil */ 4 ) ;
8+ expect ( result . toString ( ) ) . toBe ( "" ) ;
99 } ) ;
1010 test ( "nil toString" , async ( ) => {
1111 const vm = await initRubyVM ( ) ;
You can’t perform that action at this time.
0 commit comments