From f80921f4acc6f5dab256a1a1a99174c9fd87f73e Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Mon, 7 Dec 2015 15:59:24 -0800 Subject: [PATCH] fix(specs): Update specs for EditableList --- spec/components/editable-list-spec.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/components/editable-list-spec.jsx b/spec/components/editable-list-spec.jsx index 17265d817..d9df8fec5 100644 --- a/spec/components/editable-list-spec.jsx +++ b/spec/components/editable-list-spec.jsx @@ -42,7 +42,7 @@ describe('EditableList', ()=> { it('calls onItemCreated', ()=> { const onItemCreated = jasmine.createSpy('onItemCreated'); const list = makeList(['1', '2'], {initialState: {creatingItem: true}, onItemCreated}); - const createItem = findRenderedDOMComponentWithClass(list, 'create-item'); + const createItem = findRenderedDOMComponentWithClass(list, 'create-item-input'); const input = findRenderedDOMComponentWithTag(createItem, 'input'); findDOMNode(input).value = 'New Item'; @@ -141,7 +141,7 @@ describe('EditableList', ()=> { findRenderedDOMComponentWithClass(list, 'items-wrapper') ); expect(()=> { - findRenderedDOMComponentWithClass(list, 'create-item'); + findRenderedDOMComponentWithClass(list, 'create-item-input'); }).toThrow(); expect(innerList.childNodes.length).toEqual(3); @@ -151,7 +151,7 @@ describe('EditableList', ()=> { it('renders create input as an item when creating', ()=> { const items = ['1', '2', '3']; const list = makeList(items, {initialState: {creatingItem: true}}); - const createItem = findRenderedDOMComponentWithClass(list, 'create-item'); + const createItem = findRenderedDOMComponentWithClass(list, 'create-item-input'); expect(createItem).toBeDefined(); });