Skip to content

Commit

Permalink
Updated test text to increase clarity of functionality 🆑
Browse files Browse the repository at this point in the history
  • Loading branch information
01taylop committed Jun 17, 2024
1 parent a4c39c6 commit af19d5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/watchFiles.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ describe('watchFiles', () => {
})
})

it('emits a "FILE_CHANGED" event when saving the file for the first time', done => {
it('emits a "FILE_CHANGED" event when saving an existing file (because there is no hash map yet)', done => {
expect.assertions(1)

const mockPath = 'mock/existing-file.ts'
mockReadFile('first-time-save')
mockReadFile('open-and-save')

fileChangeEvent.on(Events.FILE_CHANGED, params => {
expect(params).toStrictEqual({
Expand Down

0 comments on commit af19d5e

Please sign in to comment.