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";
4
4
describe ( "Manipulation of JS from Ruby" , ( ) => {
5
5
jest . setTimeout ( 10 /*sec*/ * 1000 ) ;
6
6
7
- const Qtrue = 0x02 ;
8
7
test ( `require "js"` , async ( ) => {
9
8
const vm = await initRubyVM ( ) ;
10
9
const result = vm . eval ( `require "js"` ) ;
11
- expect ( ( result as any ) . inner . _wasm_val ) . toBe ( Qtrue ) ;
10
+ expect ( result . toString ( ) ) . toBe ( "true" ) ;
12
11
} ) ;
13
12
14
13
test ( "JS::Object#method_missing with block" , async ( ) => {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ describe("RubyVM", () => {
5
5
test ( "empty expression" , async ( ) => {
6
6
const vm = await initRubyVM ( ) ;
7
7
const result = vm . eval ( "" ) ;
8
- expect ( ( result as any ) . inner . _wasm_val ) . toBe ( /* Qnil */ 4 ) ;
8
+ expect ( result . toString ( ) ) . toBe ( "" ) ;
9
9
} ) ;
10
10
test ( "nil toString" , async ( ) => {
11
11
const vm = await initRubyVM ( ) ;
You can’t perform that action at this time.
0 commit comments