From d18ae551ba600f9fb3a54891ea4ec2c835d09517 Mon Sep 17 00:00:00 2001 From: levithomason Date: Tue, 27 Oct 2015 14:26:18 -0700 Subject: [PATCH] update field test --- test/specs/collections/Form/Field-test.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/specs/collections/Form/Field-test.js b/test/specs/collections/Form/Field-test.js index bdbd774110..afc19c546b 100644 --- a/test/specs/collections/Form/Field-test.js +++ b/test/specs/collections/Form/Field-test.js @@ -7,18 +7,16 @@ describe('Field', () => { it('has a label', () => { render() .findTag('label') - .props.children.should.equal('First Name'); + .textContent.should.equal('First Name'); }); it('renders children', () => { - render(yo child) - .assertText('yo child'); + render(yo child).assertText('yo child'); }); it('can specify a width', () => { _.each(_.range(1, 17), n => { - const classes = numberToWord(n) + ' wide'; - render().findClass(classes); + render().findClass(`${numberToWord(n)} wide`); }); }); });