Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadalm committed Aug 1, 2023
1 parent f06e5a1 commit 542ea87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/receive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ mod test {
let (mut deps, env) = setup_test(Some(InstantiateMsg {
admin: None,
komple_mint_addr: Some(get_komple_addrs().mint.to_string()),
nois_proxy: None,
}));

deps.querier
Expand Down Expand Up @@ -156,6 +157,7 @@ mod test {
let (mut deps, env) = setup_test(Some(InstantiateMsg {
admin: None,
komple_mint_addr: Some(get_komple_addrs().mint.to_string()),
nois_proxy: None,
}));

deps.querier
Expand Down
3 changes: 3 additions & 0 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ fn proper_initialization() {
let msg = InstantiateMsg {
admin: None,
komple_mint_addr: None,
nois_proxy: None,
};
let info = mock_info("creator", &[]);

Expand All @@ -116,6 +117,7 @@ fn unauthorized_config_update() {
let (mut deps, env) = setup_test(Some(InstantiateMsg {
admin: Some("admin".to_string()),
komple_mint_addr: Some(get_komple_addrs().mint.to_string()),
nois_proxy: None,
}));

let sender = "non-admin";
Expand All @@ -135,6 +137,7 @@ fn authorized_config_update() {
let (mut deps, env) = setup_test(Some(InstantiateMsg {
admin: Some("admin".to_string()),
komple_mint_addr: Some(get_komple_addrs().mint.to_string()),
nois_proxy: None,
}));

let sender = "admin";
Expand Down

0 comments on commit 542ea87

Please sign in to comment.