-
Notifications
You must be signed in to change notification settings - Fork 4k
/
container-blocks.test.js.snap
58 lines (50 loc) · 2.28 KB
/
container-blocks.test.js.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Container block without paragraph support ensures we can use the alternative block appender properly 1`] = `
"<!-- wp:test/container-without-paragraph -->
<!-- wp:image -->
<figure class="wp-block-image"><img alt=""/></figure>
<!-- /wp:image -->
<!-- /wp:test/container-without-paragraph -->"
`;
exports[`InnerBlocks Template Sync Ensure inner block writing flow works as expected without additional paragraphs added 1`] = `
"<!-- wp:test/test-inner-blocks-paragraph-placeholder -->
<!-- wp:paragraph {"placeholder":"Content…","fontSize":"large"} -->
<p class="has-large-font-size">Test Paragraph</p>
<!-- /wp:paragraph -->
<!-- /wp:test/test-inner-blocks-paragraph-placeholder -->"
`;
exports[`InnerBlocks Template Sync Ensures blocks without locking are kept intact even if they do not match the template 1`] = `
"<!-- wp:test/test-inner-blocks-no-locking -->
<!-- wp:paragraph {"fontSize":"large"} -->
<p class="has-large-font-size">Content…</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>added paragraph</p>
<!-- /wp:paragraph -->
<!-- /wp:test/test-inner-blocks-no-locking -->
"
`;
exports[`InnerBlocks Template Sync Removes blocks that are not expected by the template if a lock all exists 1`] = `
"<!-- wp:test/test-inner-blocks-locking-all -->
<!-- wp:paragraph {"fontSize":"large"} -->
<p class="has-large-font-size">Content…</p>
<!-- /wp:paragraph -->
<!-- /wp:test/test-inner-blocks-locking-all -->"
`;
exports[`InnerBlocks Template Sync Synchronizes blocks if lock 'all' is set and the template prop is changed 1`] = `
"<!-- wp:test/test-inner-blocks-update-locked-template -->
<!-- wp:paragraph {"fontSize":"large"} -->
<p class="has-large-font-size">Content…</p>
<!-- /wp:paragraph -->
<!-- /wp:test/test-inner-blocks-update-locked-template -->"
`;
exports[`InnerBlocks Template Sync Synchronizes blocks if lock 'all' is set and the template prop is changed 2`] = `
"<!-- wp:test/test-inner-blocks-update-locked-template {"hasUpdatedTemplate":true} -->
<!-- wp:paragraph {"fontSize":"large"} -->
<p class="has-large-font-size">Content…</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"fontSize":"large"} -->
<p class="has-large-font-size">Two</p>
<!-- /wp:paragraph -->
<!-- /wp:test/test-inner-blocks-update-locked-template -->"
`;