mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
fix overlayComponent access syntax in test
This commit is contained in:
parent
089717cbd3
commit
ed94726fab
@ -1896,8 +1896,7 @@ describe('TextEditorComponent', () => {
|
||||
const decoration = editor.decorateMarker(marker, {type: 'overlay', item: overlayElement, class: 'a'})
|
||||
await component.getNextUpdatePromise()
|
||||
|
||||
let overlayComponent
|
||||
component.overlayComponents.forEach(c => overlayComponent = c)
|
||||
const overlayComponent = component.overlayComponents.values().next().value
|
||||
|
||||
const overlayWrapper = overlayElement.parentElement
|
||||
expect(overlayWrapper.classList.contains('a')).toBe(true)
|
||||
|
Loading…
Reference in New Issue
Block a user