Hello, one of my kafka message attributes has this...
# pact-js
z
Hello, one of my kafka message attributes has this format
"@type": "CreateTransfer",
. When defining the expected body in consumer test, I am not sure which syntax I should use for attribute @type as simply adding @ does not work.
const transferBodyExpectation = {
id: like("***************"),
from: like("***************"),
to: [like("***************")],
@type: like("CreateTransfer"), // TODO fix the syntax for all attributes starting with @
......
m
This is a JS question. Simply wrap the key in quotes
z
okay thought PACT has a specific syntax for that.
👍 1