This commit is contained in:
Nathan Sobo
2017-04-11 15:44:28 -06:00
committed by Antonio Scandurra
parent 6e6dce21ee
commit 3fce3ebe17

View File

@@ -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)
})
})