From 6b6ac6c71878e96ccaf3f19a81903ba620d16b5d Mon Sep 17 00:00:00 2001 From: Ronald Holshausen Date: Tue, 5 Jan 2021 15:01:19 +1100 Subject: [PATCH] fix: correct V3 matcher spec --- src/v3/matchers.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/v3/matchers.spec.ts b/src/v3/matchers.spec.ts index 4c94e1069..89a1a0dd5 100644 --- a/src/v3/matchers.spec.ts +++ b/src/v3/matchers.spec.ts @@ -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", }) }) @@ -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", }) }) @@ -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", }) })