We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89e5494 commit 3779b5cCopy full SHA for 3779b5c
spec/minimap-spec.js
@@ -89,7 +89,10 @@ describe('Minimap', () => {
89
90
editor.setText('foo')
91
92
- expect(changeSpy).toHaveBeenCalled()
+ // because of requestAnimation the change is relayed asynchronously.
93
+ setTimeout(() => {
94
+ expect(changeSpy).toHaveBeenCalled()
95
+ }, 1000)
96
})
97
98
it('relays scroll top events from the editor', () => {
0 commit comments