We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93079c5 commit 63ae965Copy full SHA for 63ae965
tests/utils/modifyRows.test.ts
@@ -0,0 +1,52 @@
1
+import { modifyRows } from '../../src/utils/modifyRows';
2
+
3
+it('Should work', () => {
4
+ const rows = modifyRows(
5
+ {
6
+ block: {
7
+ block_1: {
8
+ role: 'editor',
9
+ value: {
10
+ properties: {
11
+ title: [['A']]
12
+ }
13
+ } as any
14
+ },
15
+ block_2: {
16
17
18
19
+ title: [['C']]
20
21
22
23
+ block_3: {
24
25
26
27
+ title: [['B']]
28
29
30
31
32
33
+ 'block_4'
34
+ );
35
+ expect(rows).toStrictEqual([
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
+ ]);
52
+});
0 commit comments