Skip to content

Commit 0b355eb

Browse files
committed
[test] Fix invalid mergeables
1 parent 6eeaa3d commit 0b355eb

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

test/unit/core/store/mergeable-store.test.ts

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -668,25 +668,27 @@ describe('applyMergeableChanges/setMergeableContent', () => {
668668
});
669669

670670
test.each([
671-
'',
672-
1,
673-
true,
674-
{},
675-
[1],
676671
[''],
677-
['', {}],
678-
[0, {}, 0],
679-
['', {}, 0],
680-
['', {}, ''],
681-
['', [0, 0], 0],
682-
['', [[], []], 0],
672+
[1],
673+
[true],
674+
[{}],
675+
[[]],
676+
[['']],
677+
[['', {}]],
678+
[[0, {}, 0]],
679+
[['', {}, 0]],
680+
[['', {}, '']],
681+
[['', [0, 0], 0]],
682+
[['', [[], []], 0]],
683683
[
684-
'',
685684
[
686-
['', 0, 0],
687-
['', 0, 0],
685+
'',
686+
[
687+
['', 0, 0],
688+
['', 0, 0],
689+
],
690+
0,
688691
],
689-
0,
690692
],
691693
])('set with invalid structure, %s', (invalid: any) => {
692694
store.setContent([{t1: {r1: {c1: 1}}}, {v1: 1}]);

0 commit comments

Comments
 (0)