Skip to content

Commit 69214f3

Browse files
Remove test for derived event call - it is not supported anymore
1 parent 50aa8a7 commit 69214f3

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/once/once.test.ts

-15
Original file line numberDiff line numberDiff line change
@@ -72,21 +72,6 @@ it('only triggers once in race conditions', () => {
7272
expect(fn).toHaveBeenCalledTimes(1);
7373
});
7474

75-
it('calling derived event does not lock once', () => {
76-
const fn = jest.fn();
77-
78-
const source = createEvent<void>();
79-
const derived = once(source);
80-
81-
derived.watch(fn);
82-
expect(fn).toHaveBeenCalledTimes(0);
83-
84-
derived();
85-
source();
86-
87-
expect(fn).toHaveBeenCalledTimes(2);
88-
});
89-
9075
it('supports config as an argument', () => {
9176
const fn = jest.fn();
9277

0 commit comments

Comments
 (0)