add mocha test in wasm instead of "wasm-pack test"

This commit is contained in:
freestrings
2019-05-21 10:48:18 +09:00
parent fe8a2f70c0
commit 416636bc48
7 changed files with 1666 additions and 8 deletions

View File

@ -156,7 +156,7 @@ declare_types! {
let result = {
let guard = ctx.lock();
let mut this = this.borrow_mut(&guard);
let this = this.borrow_mut(&guard);
this.selector.select_as_str()
};
@ -174,7 +174,7 @@ declare_types! {
let value = {
let guard = ctx.lock();
let mut this = this.borrow_mut(&guard);
let this = this.borrow_mut(&guard);
match this.selector.select_as_str() {
Ok(v) => v,
Err(e) => panic!("{:?}", e)
@ -200,7 +200,7 @@ declare_types! {
let result = {
let guard = ctx.lock();
let mut this = this.borrow_mut(&guard);
let this = this.borrow_mut(&guard);
match this.selector.get() {
Ok(v) => v,
Err(e) => panic!("{:?}", e)