Fixed tests

This commit is contained in:
Kylart 2017-09-26 10:58:10 +02:00
parent 988e6e849f
commit 00822ec85e
1 changed files with 10 additions and 10 deletions

View File

@ -132,8 +132,8 @@ test('/download Mahou Shoujo Ikusei Keikaku with HorribleSubs at 720p on nyaa.si
})
if (status === 200) {
t.is(data.length, 12)
t.not(data[0], '')
t.is(data.magnets.length, 12)
t.not(data.magnets[0], '')
} else {
t.fail()
}
@ -151,8 +151,8 @@ test('/download Mahou Shoujo Ikusei Keikaku with HorribleSubs at 720p on nyaa.pa
})
if (status === 200) {
t.is(data.length, 12)
t.not(data[0], '')
t.is(data.magnets.length, 12)
t.not(data.magnets[0], '')
} else {
t.fail()
}
@ -188,10 +188,10 @@ test('/download Mahou Shoujo Ikusei Keikaku with HorribleSubs at 720p from ep 3
})
if (status === 200) {
t.is(data.length, 7)
t.not(data[0], '')
t.is(data.magnets.length, 7)
t.not(data.magnets[0], '')
} else if (status === 204) {
t.is(data.length, 0)
t.is(data.magnets.length, 0)
} else {
t.fail()
}
@ -210,10 +210,10 @@ test('/download Mahou Shoujo Ikusei Keikaku with HorribleSubs at 720p from ep 3
})
if (status === 200) {
t.is(data.length, 7)
t.not(data[0], '')
t.is(data.magnets.length, 7)
t.not(data.magnets[0], '')
} else if (status === 204) {
t.is(data.length, 0)
t.is(data.magnets.length, 0)
} else {
t.fail()
}