Improve Deezer matching

This commit is contained in:
Jonathan Cremin 2017-05-07 20:57:12 +01:00
parent c5ea8f5b7a
commit 00ca82c851
3 changed files with 52 additions and 5 deletions

View file

@ -20,6 +20,11 @@ describe('Deezer', function(){
result.name.should.startWith('In Colour');
});
it('should find album with various artists by search', function* (){
const result = yield deezer.search({type: 'album', artist: {name: 'Various Artists'}, name: 'The Trevor Nelson Collection'});
result.name.should.equal('The Trevor Nelson Collection');
});
it('should find track by search', function* (){
const result = yield deezer.search({type: 'track', artist: {name: 'Deftones'}, albumName: 'Deftones', name: 'Hexagram'});
result.name.should.equal('Hexagram');

View file

@ -20,7 +20,7 @@ describe('Spotify', function(){
result.name.should.equal('Listen (Deluxe)');
});
it('should find album with colon in name by search', function* (){
it('should find album by various artists by search', function* (){
const result = yield spotify.search({type: 'album', artist: {name: 'Various Artists'}, name: 'The Get Down Part II: Original Soundtrack From The Netflix Original Series'});
result.name.should.equal('The Get Down Part II: Original Soundtrack From The Netflix Original Series');
});