mirror of
https://github.com/atom/atom.git
synced 2026-01-26 15:28:27 -05:00
Fix test
This commit is contained in:
committed by
Antonio Scandurra
parent
6e6dce21ee
commit
3fce3ebe17
@@ -407,9 +407,8 @@ describe('TextEditorComponent', () => {
|
||||
|
||||
it('supports the placeholderText parameter', () => {
|
||||
const placeholderText = 'Placeholder Test'
|
||||
const {component} = buildComponent({placeholderText, text: ''})
|
||||
const emptyLineSpace = ' '
|
||||
expect(component.refs.content.textContent).toBe(emptyLineSpace + placeholderText)
|
||||
const {element} = buildComponent({placeholderText, text: ''})
|
||||
expect(element.textContent).toContain(placeholderText)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user