-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Thunkify reusable-blocks store (#35217)
* Migrate reusable-blocks store to thunks * Remove unnecessary request handler mocks * Remove jest.useRealTimers() and add a comment to explain the addEntities() call * Update test snapshots
- Loading branch information
Showing
6 changed files
with
400 additions
and
378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
packages/reusable-blocks/src/store/test/__snapshots__/actions.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Actions __experimentalConvertBlockToStatic should convert a static reusable into a static block 1`] = ` | ||
Array [ | ||
Object { | ||
"attributes": Object { | ||
"name": "Big Bird", | ||
}, | ||
"innerBlocks": Array [ | ||
Object { | ||
"attributes": Object { | ||
"name": "Oscar the Grouch", | ||
}, | ||
"innerBlocks": Array [], | ||
"isValid": true, | ||
"name": "core/test-block", | ||
"originalContent": "", | ||
"validationIssues": Array [], | ||
}, | ||
Object { | ||
"attributes": Object { | ||
"name": "Cookie Monster", | ||
}, | ||
"innerBlocks": Array [], | ||
"isValid": true, | ||
"name": "core/test-block", | ||
"originalContent": "", | ||
"validationIssues": Array [], | ||
}, | ||
], | ||
"isValid": true, | ||
"name": "core/test-block", | ||
"originalContent": "", | ||
"validationIssues": Array [], | ||
}, | ||
] | ||
`; | ||
|
||
exports[`Actions __experimentalConvertBlocksToReusable should convert a static block into a reusable block 1`] = ` | ||
Array [ | ||
Object { | ||
"attributes": Object { | ||
"ref": "new-id", | ||
}, | ||
"innerBlocks": Array [], | ||
"isValid": true, | ||
"name": "core/block", | ||
}, | ||
] | ||
`; |
Oops, something went wrong.