From 3fce3ebe17446c84212bdb5061db84ddf3df785d Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Tue, 11 Apr 2017 15:44:28 -0600 Subject: [PATCH] Fix test --- spec/text-editor-component-spec.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/text-editor-component-spec.js b/spec/text-editor-component-spec.js index 980060734..0937da810 100644 --- a/spec/text-editor-component-spec.js +++ b/spec/text-editor-component-spec.js @@ -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) }) })