Skip to content

Commit

Permalink
Merge pull request #37 from restqa/issue_parenthese
Browse files Browse the repository at this point in the history
fix: Regexp match when the url contains a parenthese at the end
  • Loading branch information
olivierodo authored Jan 19, 2023
2 parents 9f57b47 + 9e26c29 commit 2a9f0e2
Show file tree
Hide file tree
Showing 6 changed files with 6,483 additions and 27 deletions.
5 changes: 3 additions & 2 deletions jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ const status = {
'https://broken.com/test': 404,
'https://broken.com': 403,
'https://gittlab.com': 500,
'https://ggithub.com': 401
'https://ggithub.com': 401,
'https://en.wikipedia.org/wiki/Container_\\(virtualization\\)': 200
}

const endpoints = Object.entries(status)
.map(([url, statusCode]) => rest.get(url, (req, res, ctx) => res(ctx.status(statusCode))))

global.mockRemoteServer = setupServer(...endpoints)
global.mockRemoteServer = setupServer(...endpoints)
Loading

0 comments on commit 2a9f0e2

Please sign in to comment.