Skip to content

Commit

Permalink
style: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
RDIL committed Jul 25, 2024
1 parent b9f0b47 commit e6db4c1
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions tests/handleEvent.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,22 @@ describe("handleEvent api", () => {

it("supports $.ContractId", () => {
const { Definition, Input } = suites.withContractId
const result = handleEvent(Definition, Definition.Context, Input.Value, {
currentState: "Start",
eventName: Input.Name,
timestamp: 0,
contractId: "abc123",
})
const result = handleEvent(
Definition,
Definition.Context,
Input.Value,
{
currentState: "Start",
eventName: Input.Name,
timestamp: 0,
contractId: "abc123",
},
)

assert.ok(!result.context["ContractId"], "ContractId should not be in the context after the event")
assert.ok(
!result.context["ContractId"],
"ContractId should not be in the context after the event",
)
assert.strictEqual(result.state, "Success")
})
})

0 comments on commit e6db4c1

Please sign in to comment.