fix(ui): 统一表格筛选分页和用量明细,升级 ESLint

This commit is contained in:
zhanjunhao
2026-11-19 23:09:58 +08:00
parent 7908ed53a3
commit 04cc45bbb7
76 changed files with 2556 additions and 2410 deletions
+5 -1
View File
@@ -57,6 +57,9 @@ test('latest all status is omitted and export pins server snapshot across all pa
),
false,
);
const listURL = new URL(latestTierURL({ pageSize: 20 }, 2), 'http://local');
assert.equal(listURL.searchParams.get('page_size'), '20');
assert.equal(listURL.searchParams.get('p'), '2');
const urls = [];
const rows = await fetchAllLatestTiers(
async (url) => {
@@ -69,9 +72,10 @@ test('latest all status is omitted and export pins server snapshot across all pa
revision: 7,
};
},
{ query: '中文', type: 'level' },
{ query: '中文', type: 'level', pageSize: 20 },
);
assert.equal(rows.length, 2);
assert.ok(urls.every((url) => /page_size=100/.test(url)));
assert.match(urls[1], /as_of=123/);
assert.match(urls[1], /revision=7/);
});