fix(backend): fix test

This commit is contained in:
kakkokari-gtyih 2025-08-22 17:54:17 +09:00
parent 8cbbb80e3f
commit 52ba853332
1 changed files with 2 additions and 6 deletions

View File

@ -363,14 +363,10 @@ describe('クリップ', () => {
const clipLimit = DEFAULT_POLICIES.clipLimit;
const clips = await createMany({}, clipLimit);
const res = await list({
parameters: { limit: 1 }, // FIXME: 無視されて11全部返ってくる
parameters: { limit: clips.length },
});
// 返ってくる配列には順序保障がないのでidでソートして厳密比較
assert.deepStrictEqual(
res.sort(compareBy(s => s.id)),
clips.sort(compareBy(s => s.id)),
);
assert.deepStrictEqual(res, clips);
});
test('の一覧が取得できる(空)', async () => {