parent
8cbbb80e3f
commit
20d81696e1
|
@ -363,14 +363,11 @@ 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)),
|
||||
);
|
||||
// 作成responseの配列には順序保障がないのでidでソートして厳密比較
|
||||
assert.deepStrictEqual(res.toReversed(), clips.sort(compareBy(s => s.id)));
|
||||
});
|
||||
|
||||
test('の一覧が取得できる(空)', async () => {
|
||||
|
|
Loading…
Reference in New Issue