Skip to content

Commit

Permalink
Fix Eslint issues found in block-serialization-spec-parser packages (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo authored Aug 20, 2018
1 parent f90b2d6 commit d27c73e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ build
build-module
coverage
node_modules
packages/block-serialization-spec-parser
test/e2e/test-plugins
vendor
packages/block-serialization-spec-parser/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`block-serialization-spec-parser parse() works properly 1`] = `
Array [
Object {
"attrs": null,
"blockName": "core/more",
"innerBlocks": Array [],
"innerHTML": "<!--more-->",
},
]
`;
23 changes: 7 additions & 16 deletions packages/block-serialization-spec-parser/test/index.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
/**
* Internal dependencies
*/
import { parse } from "../";
import { parse } from '../';

describe("block-serialization-spec-parser", () => {
test("parse() works properly", () => {
describe( 'block-serialization-spec-parser', () => {
test( 'parse() works properly', () => {
const result = parse(
"<!-- wp:core/more --><!--more--><!-- /wp:core/more -->"
'<!-- wp:core/more --><!--more--><!-- /wp:core/more -->'
);

expect(result).toMatchInlineSnapshot(`
Array [
Object {
"attrs": null,
"blockName": "core/more",
"innerBlocks": Array [],
"innerHTML": "<!--more-->",
},
]
`);
});
});
expect( result ).toMatchSnapshot();
} );
} );

0 comments on commit d27c73e

Please sign in to comment.