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

feat: Add test code into the getQrCodeLink method to skip throw error & remove mock #38

Closed
wants to merge 4 commits into from

Conversation

kiner-tang
Copy link
Member

No description provided.

@github-actions
Copy link

github-actions bot commented Oct 12, 2023

Copy link
Collaborator

Choose a reason for hiding this comment

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

这个不要删,后面还是有用的,可以用于 UI 组件单测

@@ -73,7 +73,15 @@ export class UniversalProvider extends EventEmitter implements UniversalWeb3Prov
}

getQrCodeLink(): Promise<string> {
throw new Error('Method not implemented.');
return new Promise<string>((resolve) =>
setTimeout(
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个 Provider 还是不要用 mock 代码,要具体实现下。getQrCodeLink 这个逻辑可能要再仔细看看怎么设计。这个二维码是要通过 WallectConnect 的 Provider 获取的,要看看怎么搞。

Copy link
Member Author

Choose a reason for hiding this comment

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

好的,那这个先 close 了

@kiner-tang kiner-tang closed this Oct 13, 2023
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