Skip to content

Commit

Permalink
feat: allow tests to specify options that will be passed to update fu…
Browse files Browse the repository at this point in the history
…nctions in tests

Update readme
  • Loading branch information
atheck committed Jun 27, 2024
1 parent 9a530b4 commit c4ce688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ const createUpdateArgs = getCreateUpdateArgs(init, () => ({ /* initial props */

it("returns the correct model and cmd", async () => {
// arrange
const args = createUpdateArgs(Msg.test(), { /* optionally override model here */ }, { /* optionally override props here */ });
const args = createUpdateArgs(Msg.test(), { /* optionally override model here */ }, { /* optionally override props here */ }, { /* optionally override options here */ });

// act
// Call the update handler
Expand Down

0 comments on commit c4ce688

Please sign in to comment.