Add unit tests for spotify

This commit is contained in:
Jonathan Cremin 2014-12-01 12:41:26 +00:00
parent 493482386e
commit f6907766bd
4 changed files with 48 additions and 12 deletions

View file

@ -39,6 +39,6 @@ module.exports.parseUrl = function(url, next) {
var matches = parse(url).path.match(/\/album[\/]+([^\/]+)/);
if (matches && matches[1]) {
return next({id:matches[1], type: "album"})
next({id:matches[1], type: "album"})
}
}