Skip to content

Commit

Permalink
feat: add example consumer test with provider state injected values #516
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Holshausen committed Nov 16, 2020
1 parent f798c13 commit 190f332
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -7,7 +7,8 @@ const {
integer,
url,
regex,
datetime
datetime,
fromProviderState
} = MatchersV3

describe("Transaction service - create a new transaction for an account", () => {
Expand All @@ -29,7 +30,7 @@ describe("Transaction service - create a new transaction for an account", () =>
.withRequest({
method: "GET",
path: "/accounts/search/findOneByAccountNumberId",
query: { accountNumber: "100" },
query: { accountNumber: fromProviderState("\${accountNumber}", "100") },
headers: { Accept: "application/json" },
})
.willRespondWith({
Expand All @@ -43,7 +44,7 @@ describe("Transaction service - create a new transaction for an account", () =>
createdDate: datetime("yyyy-MM-dd HH:mm:ss"),
lastModifiedDate: datetime("yyyy-MM-dd HH:mm:ss"),
accountNumber: {
id: integer(100)
id: fromProviderState("\${accountNumber}", 100)
},
_links: {
self: {
Expand Down

0 comments on commit 190f332

Please sign in to comment.