Skip to content

Commit

Permalink
fix: correct V3 matcher spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Holshausen committed Jan 5, 2021
1 parent d515757 commit 6b6ac6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/v3/matchers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ describe("V3 Matchers", () => {
])
expect(result).to.deep.equal({
"pact:matcher:type": "regex",
regex: ".*\\/users\\/1234\\/posts\\/latest$",
regex: ".*(\\/users\\/1234\\/posts\\/latest)$",
value: "http://localhost:8080/users/1234/posts/latest",
})
})
Expand All @@ -446,7 +446,7 @@ describe("V3 Matchers", () => {
])
expect(result).to.deep.equal({
"pact:matcher:type": "regex",
regex: ".*\\/users\\/\\d+\\/posts\\/latest$",
regex: ".*(\\/users\\/\\d+\\/posts\\/latest)$",
value: "http://localhost:8080/users/1234/posts/latest",
})
})
Expand All @@ -463,7 +463,7 @@ describe("V3 Matchers", () => {
])
expect(result).to.deep.equal({
"pact:matcher:type": "regex",
regex: ".*\\/users\\/\\d+\\/posts\\/latest$",
regex: ".*(\\/users\\/\\d+\\/posts\\/latest)$",
value: "http://localhost:8080/users/12345678/posts/latest",
})
})
Expand Down

0 comments on commit 6b6ac6c

Please sign in to comment.