"author": "",
"license": "MIT",
"devDependencies": {
- "@pact-foundation/pact": "^10.0.0-beta.19",
+ "@pact-foundation/pact": "^10.0.0-beta.23",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"jest": "^26.4.2"
provider = new PactV3({
consumer: "Siren Order Provider",
provider: "Siren Order Service",
- port: 9000,
dir: path.resolve(process.cwd(), "pacts")
})
})
'Content-Type': 'application/vnd.siren+json'
},
body: {
- class:[ "representation"],
- links:[{"rel":["orders"], "href": url("http://localhost:9000", ["orders"]) }]
+ class: [ "representation"],
+ links: [{"rel":["orders"], "href": url(["orders"]) }]
}
})
links: [
{
"rel": [ "self" ],
- "href": url("http://localhost:9000", ["orders", regex("\\d+", "1234")])
+ "href": url(["orders", regex("\\d+", "1234")])
}
],
"actions": arrayContaining(
{
"name": "update",
"method": "PUT",
- "href": url("http://localhost:9000", ["orders", regex("\\d+", "1234")])
+ "href": url(["orders", regex("\\d+", "1234")])
},
{
"name": "delete",
"method": "DELETE",
- "href": url("http://localhost:9000", ["orders", regex("\\d+", "1234")])
+ "href": url(["orders", regex("\\d+", "1234")])
}
)
}),
links: [
{
rel: [ "self" ],
- href: url("http://localhost:9000", ["orders"])
+ href: url(["orders"])
}
]
}