Skip to content

Commit

Permalink
fix(overmind-statechart): fix tests related to typing
Browse files Browse the repository at this point in the history
  • Loading branch information
christianalfoni committed Jun 26, 2021
1 parent 7abeba6 commit 5c2912b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/overmind-statechart/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,10 @@ describe('Statecharts', () => {

type Context = IContext<{
state: typeof state
actions: typeof actions
actions: {
onInitializeOvermind: typeof actions.onInitializeOvermind
increaseCount: typeof actions.increaseCount
}
}>

const instance = createOvermind(
Expand Down Expand Up @@ -1054,7 +1057,12 @@ describe('Statecharts', () => {

type Context = IContext<{
state: typeof state
actions: typeof actions
actions: {
step: typeof actions.step
step2: typeof actions.step2
entry: typeof actions.entry
exit: typeof actions.exit
}
}>

const instance = createOvermind(
Expand Down

0 comments on commit 5c2912b

Please sign in to comment.