@@ -153,8 +153,7 @@ describe('クリップ', () => {
153
153
} ) ;
154
154
155
155
test ( 'の作成はポリシーで定められた数以上はできない。' , async ( ) => {
156
- // ポリシー + 1まで作れるという所がミソ
157
- const clipLimit = DEFAULT_POLICIES . clipLimit + 1 ;
156
+ const clipLimit = DEFAULT_POLICIES . clipLimit ;
158
157
for ( let i = 0 ; i < clipLimit ; i ++ ) {
159
158
await create ( ) ;
160
159
}
@@ -327,7 +326,7 @@ describe('クリップ', () => {
327
326
} ) ;
328
327
329
328
test ( 'の一覧(clips/list)が取得できる(上限いっぱい)' , async ( ) => {
330
- const clipLimit = DEFAULT_POLICIES . clipLimit + 1 ;
329
+ const clipLimit = DEFAULT_POLICIES . clipLimit ;
331
330
const clips = await createMany ( { } , clipLimit ) ;
332
331
const res = await list ( {
333
332
parameters : { limit : 1 } , // FIXME: 無視されて11全部返ってくる
@@ -705,7 +704,7 @@ describe('クリップ', () => {
705
704
706
705
// TODO: 17000msくらいかかる...
707
706
test ( 'をポリシーで定められた上限いっぱい(200)を超えて追加はできない。' , async ( ) => {
708
- const noteLimit = DEFAULT_POLICIES . noteEachClipsLimit + 1 ;
707
+ const noteLimit = DEFAULT_POLICIES . noteEachClipsLimit ;
709
708
const noteList = await Promise . all ( [ ...Array ( noteLimit ) ] . map ( ( _ , i ) => post ( alice , {
710
709
text : `test ${ i } ` ,
711
710
} ) as unknown ) ) as Misskey . entities . Note [ ] ;
0 commit comments