Skip to content

Commit

Permalink
Add mock for recentFiles.updateRecentFiles()
Browse files Browse the repository at this point in the history
  • Loading branch information
kynatro committed Dec 12, 2024
1 parent ea832bc commit 4bba8d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/__tests__/watch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const { MOCK_FILE_INFO } = require('../__mocks__/notes.mock');

const team = require('../team');
const updateTodos = require('../updateTodos');
const recentFiles = require('../recentFiles');
const watchModel = require('../watch');
const { exitScript } = require('../watch');
const { BASE_FOLDERS, TEAM_FOLDER } = notepackConfigMock;
Expand All @@ -25,6 +26,7 @@ beforeEach(() => {
console.log = jest.fn();
updateTodos.updateTodosForFolders = jest.fn();
updateTodos.updateTodosForPerson = jest.fn();
recentFiles.updateRecentFiles = jest.fn();
});

describe('watcher', () => {
Expand Down

0 comments on commit 4bba8d3

Please sign in to comment.