Skip to content

Commit

Permalink
test: Fix unused variable/parameters in the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
voodooattack committed Sep 29, 2018
1 parent f77a4a6 commit b9110b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/stateMachine.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ describe('StateMachine', () => {
const test = new TestMachine();
const result = test.run(true);

expect(result).toEqual({ value: 3 });
expect(series).toEqual([[0, 1], [1, 2], [2, 3], [3, 4], [1, 2], [2, 3], [3, 4]]);

});
Expand Down Expand Up @@ -503,12 +504,12 @@ describe('StateMachine', () => {
}

@when<BlankState>(true)
keepMe(_, m: BlankMachine) {
keepMe(_: any, m: BlankMachine) {
return { tick: m.history.tick };
}

@when((_, m) => m.history.tick > 5)
exitMachine(_, m: BlankMachine) {
@when<BlankState>((_, m) => m.history.tick > 5)
exitMachine(_: any, m: BlankMachine) {
m.exit();
}
}
Expand Down

0 comments on commit b9110b8

Please sign in to comment.