We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I need to write a mock something like this. the id part of url is variable.
Mock.mock(/\/api\/record\/:id/, 'get', patientQuery)
So how can i get this to work. From the documentation https://github.com/nuysoft/Mock/wiki/Mock.mock(), I could not find any tips.
The text was updated successfully, but these errors were encountered:
同问,url不支持通配符吗
Sorry, something went wrong.
Mock.mock(//api/record/\d+/, 'get', patientQuery)
No branches or pull requests
I need to write a mock something like this. the id part of url is variable.
So how can i get this to work. From the documentation https://github.com/nuysoft/Mock/wiki/Mock.mock(), I could not find any tips.
The text was updated successfully, but these errors were encountered: