Skip to content

Commit

Permalink
Move the test back into its area.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne committed Jun 19, 2020
1 parent 53fc2ab commit aede0f9
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions packages/block-directory/src/store/test/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,6 @@ describe( 'selectors', () => {
} );
} );

describe( 'getErrorNotices', () => {
const state = {
errorNotices: {
'block/has-error': 'Error notice',
},
};

it( 'should retrieve all error notices', () => {
const errorNotices = getErrorNotices( state );
expect( errorNotices ).toEqual( {
'block/has-error': 'Error notice',
} );
} );
} );

describe( 'getNewBlockTypes', () => {
it( 'should retrieve the block types that are installed and in the post content', () => {
getNewBlockTypes.registry = {
Expand Down Expand Up @@ -172,6 +157,21 @@ describe( 'selectors', () => {
} );
} );

describe( 'getErrorNotices', () => {
const state = {
errorNotices: {
'block/has-error': 'Error notice',
},
};

it( 'should retrieve all error notices', () => {
const errorNotices = getErrorNotices( state );
expect( errorNotices ).toEqual( {
'block/has-error': 'Error notice',
} );
} );
} );

describe( 'getErrorNoticeForBlock', () => {
const state = {
errorNotices: {
Expand Down

0 comments on commit aede0f9

Please sign in to comment.