Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8ae3663

Browse files
committed
Updated test cases for Table widget to include for setPageNumber.
1 parent3edb7cc commit8ae3663

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

‎app/client/src/entities/DataTree/dataTreeWidget.test.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,10 @@ describe("generateDataTreeWidget", () => {
555555
type:"array",
556556
disabled:"return !options.entity.multiRowSelection",
557557
},
558+
setPageNumber:{
559+
path:"pageNo",
560+
type:"number",
561+
},
558562
setData:{
559563
path:"tableData",
560564
type:"array",
@@ -597,6 +601,10 @@ describe("generateDataTreeWidget", () => {
597601
type:"array",
598602
disabled:"return !options.entity.multiRowSelection",
599603
},
604+
setPageNumber:{
605+
path:"Table1.pageNo",
606+
type:"number",
607+
},
600608
setData:{
601609
path:"Table1.tableData",
602610
type:"array",

‎app/client/src/workers/Evaluation/__tests__/setters.test.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ describe("Setter class test", () => {
6666
expect(setters.getMap()).toEqual({
6767
Table1:{
6868
setData:true,
69+
setPageNumber:true,
6970
setSelectedRowIndex:true,
7071
setVisibility:true,
7172
},
@@ -88,11 +89,16 @@ describe("Setter class test", () => {
8889
expect(Object.keys(methodMap)).toEqual([
8990
"setVisibility",
9091
"setSelectedRowIndex",
92+
"setPageNumber",
9193
"setData",
9294
]);
9395

9496
globalContext.Table1.setVisibility(true);
9597

9698
expect(globalContext.Table1.isVisible).toEqual(true);
99+
100+
globalContext.Table1.setPageNumber(2);
101+
102+
expect(globalContext.Table1.pageNo).toEqual(2);
97103
});
98104
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp