Skip to content

Commit 3779b5c

Browse files
committed
chore: sleep before checking for onDidChange
1 parent 89e5494 commit 3779b5c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/minimap-spec.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ describe('Minimap', () => {
8989

9090
editor.setText('foo')
9191

92-
expect(changeSpy).toHaveBeenCalled()
92+
// because of requestAnimation the change is relayed asynchronously.
93+
setTimeout(() => {
94+
expect(changeSpy).toHaveBeenCalled()
95+
}, 1000)
9396
})
9497

9598
it('relays scroll top events from the editor', () => {

0 commit comments

Comments
 (0)