Skip to content

Commit

Permalink
Reset blocks before each parser test
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Mar 30, 2017
1 parent a84ccb6 commit 4d3ebaa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions blocks/test/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ import { default as parse, getBlockAttributes } from '../parser';
import { getBlocks, unregisterBlock, registerBlock } from '../registration';

describe( 'block parser', () => {
beforeEach( () => {
getBlocks().forEach( ( block ) => {
unregisterBlock( block.slug );
} );
} );

describe( 'getBlockAttributes()', () => {
it( 'should merge attributes from function implementation', () => {
const blockSettings = {
Expand Down

0 comments on commit 4d3ebaa

Please sign in to comment.