Skip to content

Commit

Permalink
update test expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Dec 27, 2024
1 parent 54c4df2 commit 0881734
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/core/test/test-invoke.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ QUnit.module('Invoke', hooks => {

QUnit.test('Invoking a machine that immediately finishes', async assert => {
assert.expect(3);
const expectations = [ 'two', 'nestedTwo', 'three' ];
const expectations = [ 'nestedTwo', 'three', 'three' ];

const child = createMachine({
nestedOne: state(
Expand All @@ -379,8 +379,6 @@ QUnit.module('Invoke', hooks => {
});

let service = interpret(parent, s => {
// TODO not totally sure if this is correct, but I think it should
// hit this only once and be equal to three
assert.equal(s.machine.current, expectations.shift());
});

Expand Down

0 comments on commit 0881734

Please sign in to comment.