Skip to content

Commit

Permalink
Tests: Fix Eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Jun 23, 2017
1 parent 82b74c2 commit cb91afa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 0 additions & 6 deletions components/form-token-field/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ] );
Expand Down
2 changes: 1 addition & 1 deletion editor/test/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ],
Expand Down

0 comments on commit cb91afa

Please sign in to comment.