Major refactor of service libs, more tests

This commit is contained in:
Jonathan Cremin 2014-12-11 19:53:12 +00:00
parent cda69ea472
commit ce3ff0442c
19 changed files with 288 additions and 118 deletions

View file

@ -7,14 +7,14 @@ var beats = require("../../lib/services/beats");
describe('Beats Music', function(){
describe('lookupId', function(){
it('should find album by ID', function(done){
beats.lookupId("al920431").then(function(result) {
beats.lookupId("al920431", "album").then(function(result) {
result.name.should.equal("Deftones");
done();
});
});
it('should find track by ID', function(done){
beats.lookupId("tr6910289").then(function(result) {
beats.lookupId("tr6910289", "track").then(function(result) {
result.name.should.equal("Californication");
done();
});