From 45168336221422bb03c7098caaec5628add12cc3 Mon Sep 17 00:00:00 2001 From: David Khourshid Date: Sun, 13 Oct 2024 12:44:34 -0400 Subject: [PATCH] Revert test (happens in main) --- packages/core/test/actions.test.ts | 40 ------------------------------ 1 file changed, 40 deletions(-) diff --git a/packages/core/test/actions.test.ts b/packages/core/test/actions.test.ts index 662794d894..0fda021ccc 100644 --- a/packages/core/test/actions.test.ts +++ b/packages/core/test/actions.test.ts @@ -3549,46 +3549,6 @@ describe('raise', () => { ] `); }); - - it('a raised event "handler" should be able to read updated snapshot of self', () => { - const spy = jest.fn(); - const machine = createMachine({ - context: { - counter: 0 - }, - initial: 'a', - states: { - a: { - on: { NEXT: 'b' } - }, - b: { - entry: [assign({ counter: 1 }), raise({ type: 'EVENT' })], - on: { - EVENT: { - actions: ({ self }) => spy(self.getSnapshot().context), - target: 'c' - } - } - }, - c: {} - } - }); - - const actorRef = createActor(machine).start(); - - actorRef.send({ type: 'NEXT' }); - actorRef.send({ type: 'EVENT' }); - - expect(spy).toMatchMockCallsInlineSnapshot(` -[ - [ - { - "counter": 1, - }, - ], -] -`); - }); }); describe('cancel', () => {