Commit a04c5e9 1 parent e556378 commit a04c5e9 Copy full SHA for a04c5e9
File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ import { registerCoreBlocks } from '@gutenberg/core-blocks';
8
8
9
9
describe ( 'Store' , ( ) => {
10
10
describe ( 'actions' , ( ) => {
11
+ beforeAll ( ( ) => {
12
+ registerCoreBlocks ( ) ;
13
+ } ) ;
14
+
11
15
it ( 'should create an action to focus a block' , ( ) => {
12
16
const action = actions . focusBlockAction ( '1' ) ;
13
17
expect ( action . type ) . toBeDefined ( ) ;
@@ -37,7 +41,6 @@ describe( 'Store', () => {
37
41
} ) ;
38
42
39
43
it ( 'should create an action to create a block' , ( ) => {
40
- registerCoreBlocks ( ) ;
41
44
const newBlock = createBlock ( 'core/code' , { content : 'new test text for a core/code block' } ) ;
42
45
const action = actions . createBlockAction ( '1' , newBlock ) ;
43
46
expect ( action . type ) . toEqual ( ActionTypes . BLOCK . CREATE ) ;
You can’t perform that action at this time.
0 commit comments