Skip to content

Commit

Permalink
Remove old test without mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaskello committed May 23, 2021
1 parent b30a5e5 commit bf5bde2
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/__tests__/program.test.ts
Expand Up @@ -35,26 +35,6 @@ test("Run simple program", () => {
});

test("View can dispatch", (done) => {
const render = (): void => {
// Do nothing
};
const program: Program<undefined, number, string, string> = {
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();
Expand Down

0 comments on commit bf5bde2

Please sign in to comment.