|
|
@ -37,6 +37,7 @@ describe('POST /query with no songs', () => { |
|
|
|
songs: [], |
|
|
|
songs: [], |
|
|
|
tags: [], |
|
|
|
tags: [], |
|
|
|
artists: [], |
|
|
|
artists: [], |
|
|
|
|
|
|
|
albums: [], |
|
|
|
}); |
|
|
|
}); |
|
|
|
done(); |
|
|
|
done(); |
|
|
|
}); |
|
|
|
}); |
|
|
@ -111,7 +112,8 @@ describe('POST /query with several songs and filters', () => { |
|
|
|
expect(res.body).to.deep.equal({ |
|
|
|
expect(res.body).to.deep.equal({ |
|
|
|
songs: [ song1, song2, song3 ], |
|
|
|
songs: [ song1, song2, song3 ], |
|
|
|
artists: [], |
|
|
|
artists: [], |
|
|
|
tags: [] |
|
|
|
tags: [], |
|
|
|
|
|
|
|
albums: [], |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -141,7 +143,8 @@ describe('POST /query with several songs and filters', () => { |
|
|
|
expect(res.body).to.deep.equal({ |
|
|
|
expect(res.body).to.deep.equal({ |
|
|
|
songs: [ song1, song3 ], |
|
|
|
songs: [ song1, song3 ], |
|
|
|
artists: [], |
|
|
|
artists: [], |
|
|
|
tags: [] |
|
|
|
tags: [], |
|
|
|
|
|
|
|
albums: [], |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -171,7 +174,8 @@ describe('POST /query with several songs and filters', () => { |
|
|
|
expect(res.body).to.deep.equal({ |
|
|
|
expect(res.body).to.deep.equal({ |
|
|
|
songs: [ song2 ], |
|
|
|
songs: [ song2 ], |
|
|
|
artists: [], |
|
|
|
artists: [], |
|
|
|
tags: [] |
|
|
|
tags: [], |
|
|
|
|
|
|
|
albums: [], |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -201,7 +205,8 @@ describe('POST /query with several songs and filters', () => { |
|
|
|
expect(res.body).to.deep.equal({ |
|
|
|
expect(res.body).to.deep.equal({ |
|
|
|
songs: [ song1, song2 ], |
|
|
|
songs: [ song1, song2 ], |
|
|
|
artists: [], |
|
|
|
artists: [], |
|
|
|
tags: [] |
|
|
|
tags: [], |
|
|
|
|
|
|
|
albums: [], |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -241,7 +246,8 @@ describe('POST /query with several songs and filters', () => { |
|
|
|
expect(res.body).to.deep.equal({ |
|
|
|
expect(res.body).to.deep.equal({ |
|
|
|
songs: [ song1, song3 ], |
|
|
|
songs: [ song1, song3 ], |
|
|
|
artists: [], |
|
|
|
artists: [], |
|
|
|
tags: [] |
|
|
|
tags: [], |
|
|
|
|
|
|
|
albums: [], |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|