Skip to content

Commit

Permalink
Update failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Jan 7, 2025
1 parent 953f74d commit b2cea7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ describe('Converter', () => {
async () => {
const file = new File(onePath)

const fileCleanup = jest.spyOn(File.prototype as any, 'cleanup')
const unlink = jest.spyOn(fs.promises, 'unlink')
const fileSave = jest
.spyOn(File.prototype, 'save')
.mockImplementation()
Expand All @@ -609,7 +609,7 @@ describe('Converter', () => {
expect(fileTmp).toHaveBeenCalledWith(
expect.objectContaining({ extension: '.html' })
)
expect(fileCleanup).toHaveBeenCalledWith(
expect(unlink).toHaveBeenCalledWith(
expect.stringContaining(os.tmpdir())
)
expect(fileSave).toHaveBeenCalled()
Expand Down

0 comments on commit b2cea7b

Please sign in to comment.