Skip to content

Commit

Permalink
test: fix workflow error
Browse files Browse the repository at this point in the history
  • Loading branch information
hqwuzhaoyi committed Sep 12, 2023
1 parent ddf53ae commit e539b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/server/src/files/watch/watch.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ describe("WatchService", () => {

// Assert
expect(fs.readFileSync).toHaveBeenCalledWith(nfoPath, "utf-8");
expect(fs.existsSync).toHaveBeenCalledTimes(4); // Or the exact number of times it should be called
expect(fs.existsSync).toBeCalled(); // Or the exact number of times it should be called
expect(result).toEqual({
poster: "poster.jpg",
fanart: "fanart.jpg",
Expand Down

0 comments on commit e539b23

Please sign in to comment.