Add suppport for tracks, basic design, minor refactor
This commit is contained in:
parent
e20b3b86c4
commit
acb129899d
13 changed files with 267 additions and 77 deletions
|
@ -17,7 +17,7 @@ describe('Spotify', function(){
|
|||
|
||||
describe('search', function(){
|
||||
it('should find album by search', function(done){
|
||||
spotify.search("David Guetta Listen (Deluxe)", "album", function(result) {
|
||||
spotify.search({type: "album", artist: {name: "David Guetta"}, name: "Listen (Deluxe)"}, function(result) {
|
||||
result.name.should.equal("Listen (Deluxe)");
|
||||
done();
|
||||
});
|
||||
|
@ -46,7 +46,7 @@ describe('Rdio', function(){
|
|||
|
||||
describe('search', function(){
|
||||
it('should find album by search', function(done){
|
||||
rdio.search("David Guetta Listen (Deluxe)", "album", function(result) {
|
||||
rdio.search({type: "album", artist: {name: "David Guetta"}, name: "Listen (Deluxe)"}, function(result) {
|
||||
result.name.should.equal("Listen (Deluxe)");
|
||||
done();
|
||||
});
|
||||
|
@ -82,7 +82,7 @@ describe('Google Play Music', function(){
|
|||
|
||||
describe('search', function(){
|
||||
it('should find album by search', function(done){
|
||||
googleplaymusic.search("David Guetta Listen (Deluxe)", "album", function(result) {
|
||||
googleplaymusic.search({type: "album", artist: {name: "David Guetta"}, name: "Listen (Deluxe)"}, function(result) {
|
||||
result.name.should.equal("Listen (Deluxe)");
|
||||
done();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue