Fixed tests?

This commit is contained in:
Kylart 2017-11-17 14:09:23 +01:00
parent a7cb8cca6e
commit 6b6da13ba7
1 changed files with 6 additions and 6 deletions

View File

@ -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) {