Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions assets/src/block-validation/components/error/test/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,34 +35,39 @@ global.URL = class {};

function registerBlockTypes() {
registerBlockType(TEST_PLUGIN_BLOCK, {
apiVersion: 3,
attributes: {},
save: noop,
category: 'widgets',
title: 'test plugin block',
});

registerBlockType(TEST_MU_PLUGIN_BLOCK, {
apiVersion: 3,
attributes: {},
save: noop,
category: 'widgets',
title: 'test mu-plugin block',
});

registerBlockType(TEST_THEME_BLOCK, {
apiVersion: 3,
attributes: {},
save: noop,
category: 'widgets',
title: 'test theme block',
});

registerBlockType(TEST_CORE_BLOCK, {
apiVersion: 3,
attributes: {},
save: noop,
category: 'widgets',
title: 'test core block',
});

registerBlockType(TEST_UNKNOWN_BLOCK, {
apiVersion: 3,
attributes: {},
save: noop,
category: 'widgets',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jest.mock('../amp-toolbar-button', () => ({
describe('withAMPToolbarButton: filtering with errors', () => {
beforeAll(() => {
registerBlockType(TEST_BLOCK, {
apiVersion: 3,
attributes: {},
save: noop,
category: 'widgets',
Expand Down
Loading
Loading