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

mockHttpclient 调用2次只会命中第一次的逻辑 #164

Closed
fengmk2 opened this issue Nov 7, 2023 · 0 comments · Fixed by #165
Closed

mockHttpclient 调用2次只会命中第一次的逻辑 #164

fengmk2 opened this issue Nov 7, 2023 · 0 comments · Fixed by #165
Labels

Comments

@fengmk2
Copy link
Member

fengmk2 commented Nov 7, 2023

 app.mockHttpclient(/\/not\/match\//, {
      data: Buffer.from('mock not match response'),
    });
    app.mockHttpclient(/\/mock_url/, {
      data: Buffer.from('mock match response'),
    });

第二次的 mock_url 不会被匹配。

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

Successfully merging a pull request may close this issue.

1 participant