mirror of https://github.com/Kylart/KawAnime.git
Fixed tests?
This commit is contained in:
parent
a7cb8cca6e
commit
6b6da13ba7
|
@ -126,15 +126,15 @@ test('/getLatest.json exits and returns 18 elements with right keys at 720p', as
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
test('/download Mahou Shoujo Ikusei Keikaku with HorribleSubs at 720p on nyaa.si exits and returns all' +
|
test('/download Mahou Shoujo Ikusei Keikaku with HorribleSubs at 720p on nyaa.pantsu.cat exits and returns' +
|
||||||
' magnets', async t => {
|
' all magnets', async t => {
|
||||||
const { data, status } = await axios.post(`${uri}/download`, {
|
const { data, status } = await axios.post(`${uri}/download`, {
|
||||||
name: 'Mahou Shoujo Ikusei Keikaku',
|
name: 'Mahou Shoujo Ikusei Keikaku',
|
||||||
quality: '720p',
|
quality: '720p',
|
||||||
fromEp: 0,
|
fromEp: 0,
|
||||||
untilEp: 20000,
|
untilEp: 20000,
|
||||||
fansub: 'HorribleSubs',
|
fansub: 'HorribleSubs',
|
||||||
choice: 'si'
|
choice: 'pantsu'
|
||||||
})
|
})
|
||||||
|
|
||||||
if (status === 200) {
|
if (status === 200) {
|
||||||
|
@ -145,15 +145,15 @@ test('/download Mahou Shoujo Ikusei Keikaku with HorribleSubs at 720p on nyaa.si
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
test('/download Mahou Shoujo Ikusei Keikaku with HorribleSubs at 720p on nyaa.pantsu.cat exits and returns' +
|
test('/download Mahou Shoujo Ikusei Keikaku with HorribleSubs at 720p on nyaa.si exits and returns all' +
|
||||||
' all magnets', async t => {
|
' magnets', async t => {
|
||||||
const { data, status } = await axios.post(`${uri}/download`, {
|
const { data, status } = await axios.post(`${uri}/download`, {
|
||||||
name: 'Mahou Shoujo Ikusei Keikaku',
|
name: 'Mahou Shoujo Ikusei Keikaku',
|
||||||
quality: '720p',
|
quality: '720p',
|
||||||
fromEp: 0,
|
fromEp: 0,
|
||||||
untilEp: 20000,
|
untilEp: 20000,
|
||||||
fansub: 'HorribleSubs',
|
fansub: 'HorribleSubs',
|
||||||
choice: 'pantsu'
|
choice: 'si'
|
||||||
})
|
})
|
||||||
|
|
||||||
if (status === 200) {
|
if (status === 200) {
|
||||||
|
|
Loading…
Reference in New Issue