Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E tests for marketplace contract #16

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

niklabh
Copy link
Collaborator

@niklabh niklabh commented Apr 3, 2023

E2E tests for marketplace contract

@niklabh niklabh changed the title [Draft] E2E tests E2E tests for marketplace contract May 8, 2023
@@ -11,6 +11,9 @@ scale-info = { version = "2.3", default-features = false, features = ["derive"],
openbrush = { tag = "3.0.0", git = "https://github.com/727-Ventures/openbrush-contracts", default-features = false, features = ["ownable", "psp34", "reentrancy_guard"] }
pallet_marketplace = { path = "../../logics", default-features = false }

[dev-dependencies]
ink_e2e = "4.0.1"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you are updating this contract, please use the latest ink. I think it is 4.2

Copy link
Member

@Maar-io Maar-io left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove Lottery

#[ink_e2e::test]
async fn default_works(mut client: ink_e2e::Client<C, E>) -> E2EResult<()> {
// Given
let constructor = LotteryRef::default();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not following... What has Lottery to do with this marketplace and from where do you get the LotteryRef?

@@ -331,4 +331,105 @@ pub mod marketplace {
AccountId::from([0x2; 32])
}
}

/// end-to-end (E2E) or integration tests for lottery.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lottery?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants