More bluebird, fetch larger artwork

This commit is contained in:
Jonathan Cremin 2014-12-13 12:05:47 +00:00
parent e671b823e9
commit 23896f7ee6
16 changed files with 117 additions and 81 deletions

View file

@ -12,6 +12,13 @@ describe('Google Play Music', function(){
done();
});
});
it('should find track by ID', function(done){
google.lookupId("Tjosptub24g2dft37lforqnudpe", "track").then(function(result) {
result.name.should.equal("Cherub Rock");
done();
});
});
});
describe('search', function(){

View file

@ -7,14 +7,14 @@ var itunes = require("../../lib/services/itunes");
describe('iTunes Music', function(){
describe('lookupId', function(){
it('should find album by ID', function(done){
itunes.lookupId("id215206912").then(function(result) {
itunes.lookupId("id215206912", "album").then(function(result) {
result.name.should.equal("Peace Orchestra");
done();
});
});
it('should find track by ID', function(done){
itunes.lookupId("id215206958").then(function(result) {
itunes.lookupId("id215206958", "track").then(function(result) {
result.name.should.equal("Double Drums");
done();
});

View file

@ -12,6 +12,13 @@ describe('Spotify', function(){
done();
});
});
it('should find track by ID', function(done){
spotify.lookupId("7dS5EaCoMnN7DzlpT6aRn2", "track").then(function(result) {
result.name.should.equal("Take Me To Church");
done();
});
});
});
describe('search', function(){