diff --git a/package.json b/package.json index b52a112..a9e8229 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,7 @@ "scripts": { "build": "babel -d public/views views", "cover": "istanbul cover _mocha -- --require babel/register --require co-mocha test/**/*.js", - "jspm": "./node_modules/.bin/jspm config registries.github.auth $JSPM_GITHUB_AUTH_TOKEN && jspm install", - "start": "node -r babel/register app.js", + "start": "babel-node app.js", "postinstall": "npm run build", "test": "mocha --require co-mocha --compilers js:babel/register test/**/*.js --timeout=10000", "watch": "parallelshell \"npm run watch-js\" \"npm run watch-server\"", diff --git a/test/services/google.js b/test/services/google.js index 02ecd64..4c57efe 100644 --- a/test/services/google.js +++ b/test/services/google.js @@ -16,20 +16,20 @@ describe('Google Play Music', function(){ describe('search', function(){ it('should find album by search', function* (){ - let result = yield google.search({type: 'album', artist: {name: 'David Guetta'}, name: 'Listen (Deluxe)'}); - result.name.should.equal('Listen (Deluxe)'); + let result = yield google.search({type: 'album', artist: {name: 'Jamie xx'}, name: 'In Colour'}); + result.name.should.equal('In Colour'); }); }); describe('lookupUrl', function(){ it('should parse regular url into album ID', function* (){ - let result = yield google.parseUrl('https://play.google.com/music/listen#/album/Byp6lvzimyf74wxi5634ul4tgam/David+Guetta/Listen+(Deluxe)'); + let result = yield google.parseUrl('https://play.google.com/music/listen#/album/Byp6lvzimyf74wxi5634ul4tgam/Jamie+xx/In+Colour'); result.id.should.equal('Byp6lvzimyf74wxi5634ul4tgam'); }); it('should parse url without ID into album ID', function* (){ - let result = yield google.parseUrl('https://play.google.com/music/listen#/album//David+Guetta/Listen+(Deluxe)'); - result.id.should.equal('Byp6lvzimyf74wxi5634ul4tgam'); + let result = yield google.parseUrl('https://play.google.com/music/listen#/album//Jamie+xx/In+Colour'); + result.id.should.equal('Bvfmezcj3n42lo4xeuslpclbyrm'); }); it('should parse share url into album ID', function* (){