This commit is contained in:
kakkokari-gtyih 2025-08-22 18:14:01 +09:00
parent 698f72e82c
commit b087389531
1 changed files with 2 additions and 2 deletions

View File

@ -366,8 +366,8 @@ describe('クリップ', () => {
parameters: { limit: clips.length }, parameters: { limit: clips.length },
}); });
// 返ってくるときは作成が直近のものからとなるので、作成時のデータの順番を逆順にしたものと比較 // 作成responseの配列には順序保障がないのでidでソートして厳密比較
assert.deepStrictEqual(res, clips.toReversed()); assert.deepStrictEqual(res.toReversed(), clips.sort(compareBy(s => s.id)));
}); });
test('の一覧が取得できる(空)', async () => { test('の一覧が取得できる(空)', async () => {