Update public API syntax of remote (lazy) widgets (#2477)

Co-authored-by: huchenlei <huchenlei@proton.me>
This commit is contained in:
bymyself
2025-02-09 10:41:14 -07:00
committed by GitHub
parent 83cc49a42b
commit eeb1c34ada
6 changed files with 30 additions and 28 deletions

View File

@@ -35,10 +35,11 @@ function createMockInputData(overrides = {}): ComboInputSpecV2 {
'COMBO',
{
name: 'test_widget',
type: 'remote',
route: `/api/test/${Date.now()}${Math.random().toString(36).substring(2, 15)}`,
refresh: 0,
...overrides
remote: {
route: `/api/test/${Date.now()}${Math.random().toString(36).substring(2, 15)}`,
refresh: 0,
...overrides
}
}
]
}