Skip to content

Commit

Permalink
test: remove cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
LuLaValva committed Aug 12, 2024
1 parent bc6ccd2 commit 31c6e9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/__tests__/fixtures/effect/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,16 @@ describe(
describe(
"<effect> read-input",
fixture("./templates/read-input.marko", [
{ onCount, onCleanup, count: 1 },
{ onCount, count: 1 },
async ({ expect, rerender }) => {
expect(onCount).calledOnceWith(1);
expect(onCleanup).has.not.been.called;
resetHistory();

await rerender();
expect(onCount).has.not.been.called;
expect(onCleanup).has.not.been.called;

await rerender({ onCount, onCleanup, count: 2 });
await rerender({ onCount, count: 2 });
expect(onCount).calledOnceWith(2);
expect(onCleanup).has.been.calledOnce;
resetHistory();
},
]),
Expand Down
1 change: 0 additions & 1 deletion src/__tests__/fixtures/effect/templates/read-input.marko
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<effect() {
input.onCount(input.count);
return input.onCleanup;
}/>

-- ${input.count}

0 comments on commit 31c6e9e

Please sign in to comment.