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