From c66a45c8b899b0390a3f0aa0a17acd934a191cfc Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 25 Apr 2016 14:58:26 +1200 Subject: [PATCH] Fixed GridField JS test warnings --- .../src/components/grid-field/tests/grid-field-test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/client/src/components/grid-field/tests/grid-field-test.js b/admin/client/src/components/grid-field/tests/grid-field-test.js index b4adf20bd..69fa2f12e 100644 --- a/admin/client/src/components/grid-field/tests/grid-field-test.js +++ b/admin/client/src/components/grid-field/tests/grid-field-test.js @@ -21,7 +21,7 @@ describe('GridFieldTableComponent', () => { let gridfield; it('should return props.header if it is set', () => { - props.header =
; + props.header = ; gridfield = ReactTestUtils.renderIntoDocument( @@ -47,13 +47,13 @@ describe('GridFieldTableComponent', () => { let gridfield; it('should return props.rows if it is set', () => { - props.rows = ['row1']; + props.rows = [row1]; gridfield = ReactTestUtils.renderIntoDocument( ); - expect(gridfield.generateRows()[0]).toBe('row1'); + expect(gridfield.generateRows()[0].props.className).toBe('row'); }); it('should generate and return rows from props.data if it is set', () => {