Skip to content

Commit

Permalink
chore(test): fix failure test
Browse files Browse the repository at this point in the history
  • Loading branch information
chemzqm committed Feb 25, 2025
1 parent 9ca54c0 commit 883ae3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/__tests__/client/textSynchronization.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ describe('TextDocumentSynchronization', () => {
await client.forceDocumentSync()
await nvim.call('setline', [1, 'bar'])
await doc.synchronize()
await client.forceDocumentSync()
await helper.waitValue(() => {
return called
}, true)
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/modules/extensionManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ describe('ExtensionManager', () => {
fn()
return Promise.resolve()
})
let spy = jest.spyOn(Watchman, 'createClient').mockImplementation(() => {
let spy = jest.spyOn(workspace.fileSystemWatchers, 'createClient').mockImplementation(() => {
return {
dispose: () => {},
subscribe: (_key: string, cb: Function) => {
Expand Down

0 comments on commit 883ae3d

Please sign in to comment.