PluginProbe
Genesis Blocks / trunk
Genesis Blocks vtrunk
3.1.11 trunk 1.0.0 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 3.0.0 3.0.1 3.1.0 3.1.1 3.1.10 All 32 releases
genesis-blocks / src / utils / helpers / remove-paragraph.test.js

remove-paragraph.test.js in Genesis Blocks trunk, at src/utils/helpers/remove-paragraph.test.js

23 lines 574 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import removeParagraph from './remove-paragraph';
2
3 describe('removeParagraph', () => {
4 it.each([
5 [{}, {}],
6 ['basic text', 'basic text'],
7 [
8 { type: 'p', props: { children: 'inside paragraph' } },
9 'inside paragraph',
10 ],
11 [
12 { type: 'em', props: { children: 'inside em tag' } },
13 { type: 'em', props: { children: 'inside em tag' } },
14 ],
15 [
16 { type: 'p', props: { children: 'inside paragraph' } },
17 'inside paragraph',
18 ],
19 ])('should remove the paragraph', (component, expected) => {
20 expect(removeParagraph(component)).toEqual(expected);
21 });
22 });
23