From cb91afa299030a2b60b6a01e8a864fdf4e05f210 Mon Sep 17 00:00:00 2001 From: Grzegorz Ziolkowski Date: Fri, 23 Jun 2017 10:16:04 +0200 Subject: [PATCH] Tests: Fix Eslint errors --- .eslintrc.json | 1 + components/form-token-field/test/index.js | 6 ------ editor/test/selectors.js | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 76fc971b5fea4..126c086a2e554 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -49,6 +49,7 @@ "eol-last": "error", "func-call-spacing": "error", "indent": [ "error", "tab", { "SwitchCase": 1 } ], + "jest/valid-expect": "off", "jsx-quotes": "error", "key-spacing": "error", "keyword-spacing": "error", diff --git a/components/form-token-field/test/index.js b/components/form-token-field/test/index.js index 37829ff8c6514..b03587382a986 100644 --- a/components/form-token-field/test/index.js +++ b/components/form-token-field/test/index.js @@ -438,12 +438,6 @@ maybeDescribe( 'FormTokenField', function() { expect( textInputNode.prop( 'value' ) ).to.equal( ' quux' ); } ); - it( 'should skip empty tokens at the beginning of a paste', function() { - setText( ', ,\t \t ,,baz, quux' ); - expect( wrapper.state( 'tokens' ) ).to.deep.equal( [ 'foo', 'bar', 'baz' ] ); - expect( textInputNode.prop( 'value' ) ).to.equal( ' quux' ); - } ); - it( 'should skip empty tokens in the middle of a paste', function() { setText( 'baz, ,\t \t ,,quux' ); expect( wrapper.state( 'tokens' ) ).to.deep.equal( [ 'foo', 'bar', 'baz' ] ); diff --git a/editor/test/selectors.js b/editor/test/selectors.js index 42bc6f11cde66..5744ec85b381b 100644 --- a/editor/test/selectors.js +++ b/editor/test/selectors.js @@ -667,7 +667,7 @@ describe( 'selectors', () => { expect( getMultiSelectedBlockUids( state ) ).to.eql( [] ); } ); - it( 'should return empty if there is no multi selection', () => { + it( 'should return selected block uids if there is multi selection', () => { const state = { editor: { blockOrder: [ 5, 4, 3, 2, 1 ],