Skip to content

Commit

Permalink
Remove test for derived event call - it is not supported anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrHoroshih committed Nov 18, 2023
1 parent 50aa8a7 commit 69214f3
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/once/once.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,6 @@ it('only triggers once in race conditions', () => {
expect(fn).toHaveBeenCalledTimes(1);
});

it('calling derived event does not lock once', () => {
const fn = jest.fn();

const source = createEvent<void>();
const derived = once(source);

derived.watch(fn);
expect(fn).toHaveBeenCalledTimes(0);

derived();
source();

expect(fn).toHaveBeenCalledTimes(2);
});

it('supports config as an argument', () => {
const fn = jest.fn();

Expand Down

0 comments on commit 69214f3

Please sign in to comment.