Skip to content

Commit

Permalink
Update nft escrow tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
raress96 committed Oct 3, 2023
1 parent 92fb823 commit c28fc60
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
16 changes: 11 additions & 5 deletions contracts/nft-escrow/tests/nft_escrow_scenario_go_test.rs
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
use multiversx_sc_scenario::*;

fn world() -> ScenarioWorld {
ScenarioWorld::vm_go()
}

#[test]
fn accept_go() {
multiversx_sc_scenario::run_go("scenarios/accept.scen.json");
world().run("scenarios/accept.scen.json");
}

#[test]
fn cancel_go() {
multiversx_sc_scenario::run_go("scenarios/cancel.scen.json");
world().run("scenarios/cancel.scen.json");
}

#[test]
fn escrow_go() {
multiversx_sc_scenario::run_go("scenarios/escrow.scen.json");
world().run("scenarios/escrow.scen.json");
}

#[test]
fn init_go() {
multiversx_sc_scenario::run_go("scenarios/init.scen.json");
world().run("scenarios/init.scen.json");
}

#[test]
fn views_go() {
multiversx_sc_scenario::run_go("scenarios/views.scen.json");
world().run("scenarios/views.scen.json");
}
10 changes: 5 additions & 5 deletions contracts/nft-escrow/tests/nft_escrow_scenario_rs_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,29 @@ fn world() -> ScenarioWorld {
#[test]
#[ignore = "not supported"]
fn accept_rs() {
multiversx_sc_scenario::run_rs("scenarios/accept.scen.json", world());
world().run("scenarios/accept.scen.json");
}

#[test]
#[ignore = "not supported"]
fn cancel_rs() {
multiversx_sc_scenario::run_rs("scenarios/cancel.scen.json", world());
world().run("scenarios/cancel.scen.json");
}

#[test]
#[ignore = "not supported"]
fn escrow_rs() {
multiversx_sc_scenario::run_rs("scenarios/escrow.scen.json", world());
world().run("scenarios/escrow.scen.json");
}

#[test]
#[ignore = "not supported"]
fn init_rs() {
multiversx_sc_scenario::run_rs("scenarios/init.scen.json", world());
world().run("scenarios/init.scen.json");
}

#[test]
#[ignore = "not supported"]
fn views_rs() {
multiversx_sc_scenario::run_rs("scenarios/views.scen.json", world());
world().run("scenarios/views.scen.json");
}

0 comments on commit c28fc60

Please sign in to comment.