Skip to content

Commit 489793e

Browse files
thetarnavgithub-actions[bot]
authored andcommitted
Format
1 parent 31f8723 commit 489793e

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

packages/trigger/test/index.test.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ describe("createTriggerCache", () => {
2222
dispose();
2323
}));
2424

25-
test("dirtyAll", () =>
26-
createRoot(dispose => {
27-
const [track, , dirtyAll] = createTriggerCache(Map);
28-
let runs = -1;
29-
createComputed(() => {
30-
track(1);
31-
runs++;
32-
});
33-
expect(runs).toBe(0);
34-
dirtyAll();
35-
expect(runs).toBe(1);
36-
37-
dispose();
38-
}));
25+
test("dirtyAll", () =>
26+
createRoot(dispose => {
27+
const [track, , dirtyAll] = createTriggerCache(Map);
28+
let runs = -1;
29+
createComputed(() => {
30+
track(1);
31+
runs++;
32+
});
33+
expect(runs).toBe(0);
34+
dirtyAll();
35+
expect(runs).toBe(1);
36+
37+
dispose();
38+
}));
3939

4040
test("weak trigger cache", () =>
4141
createRoot(dispose => {

0 commit comments

Comments
 (0)