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