From bf5bde22b90e9fd0f7326fedc7e660dabfa4f3f8 Mon Sep 17 00:00:00 2001 From: Jonas Kello Date: Sun, 23 May 2021 16:42:51 +0200 Subject: [PATCH] Remove old test without mocks --- src/__tests__/program.test.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/__tests__/program.test.ts b/src/__tests__/program.test.ts index cca2d32..a668d2c 100644 --- a/src/__tests__/program.test.ts +++ b/src/__tests__/program.test.ts @@ -35,26 +35,6 @@ test("Run simple program", () => { }); test("View can dispatch", (done) => { - const render = (): void => { - // Do nothing - }; - const program: Program = { - init: () => [0], - update: () => [1], - view: ({ dispatch, state }) => { - if (state === 0) { - dispatch("increment"); - } else { - expect(state).toEqual(1); - done(); - } - return "view"; - }, - }; - run(program, undefined, render, []); -}); - -test("View can dispatch with mocks", (done) => { // Create mocks const mp = createMockProgram(); const mr = createMockRender();