projects
/
demos
/
example-siren
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: add array contains matcher
[demos/example-siren]
/
consumer
/
src
/
__tests__
/
delete-order.spec.js
diff --git
a/consumer/src/__tests__/delete-order.spec.js
b/consumer/src/__tests__/delete-order.spec.js
index
1e336b2
..
988f84a
100644
(file)
--- a/
consumer/src/__tests__/delete-order.spec.js
+++ b/
consumer/src/__tests__/delete-order.spec.js
@@
-11,7
+11,8
@@
const {
eachLike,
url,
integer,
eachLike,
url,
integer,
- regex
+ regex,
+ arrayContaining
} = MatchersV3
describe("Siren Pact test", () => {
} = MatchersV3
describe("Siren Pact test", () => {
@@
-69,7
+70,7
@@
describe("Siren Pact test", () => {
"href": url("http://localhost:9000", ["orders", regex("\\d+", "1234")])
}
],
"href": url("http://localhost:9000", ["orders", regex("\\d+", "1234")])
}
],
- "actions":
[
+ "actions":
arrayContaining(
{
"name": "update",
"method": "PUT",
{
"name": "update",
"method": "PUT",
@@
-80,8
+81,8
@@
describe("Siren Pact test", () => {
"method": "DELETE",
"href": url("http://localhost:9000", ["orders", regex("\\d+", "1234")])
}
"method": "DELETE",
"href": url("http://localhost:9000", ["orders", regex("\\d+", "1234")])
}
- ]
- }
, 2
),
+ )
+ }),
links: [
{
rel: [ "self" ],
links: [
{
rel: [ "self" ],