Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
djcsdy committed Apr 7, 2024
1 parent e5338a7 commit 99602ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ test("observeFileEvents: observe directory non-recursive, open file for write, w
event.event === "change" &&
last(accumulator)?.event === "rename" &&
last(accumulator)?.path === event.path
? []
: [event],
? accumulator
: [...accumulator, event],
[]
),
[{event: "rename", path: "a"}]
Expand Down

0 comments on commit 99602ba

Please sign in to comment.