Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add failing test
  • Loading branch information
nylen committed May 23, 2017
commit 6c4731c0fa9e8417c3906b1b1a56877553dad821
6 changes: 6 additions & 0 deletions blocks/api/test/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,12 @@ describe( 'block parser', () => {
expect( parsed[ 0 ].uid ).to.be.a( 'string' );
} );

it( 'should parse empty post content', () => {
const parsed = parse( '' );

expect( parsed ).to.eql( [] );
} );

it( 'should parse the post content, ignoring unknown blocks', () => {
registerBlock( 'core/test-block', {
attributes: function( rawContent ) {
Expand Down