combine.fm/test/lookup.js

10 lines
300 B
JavaScript
Raw Normal View History

2015-06-03 21:45:54 -07:00
import 'should';
import lookup from '../lib/lookup';
2015-01-06 12:58:57 +00:00
describe('Search with url', function(){
2015-06-03 21:45:54 -07:00
it('should find album by url', function* (){
2015-08-20 23:22:57 +01:00
const result = yield lookup('https://play.google.com/music/listen#/album/Bz6wrjczddcj5hurijsv6ohdoay');
2015-06-03 21:45:54 -07:00
result.name.should.equal('Phase 5');
2015-01-06 12:58:57 +00:00
});
2015-06-03 21:45:54 -07:00
});