Refactor searching
This commit is contained in:
parent
87649b5a3a
commit
bbcbe8d871
9 changed files with 155 additions and 122 deletions
15
test/lookup.js
Normal file
15
test/lookup.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
require('should');
|
||||
|
||||
var search = require("../lib/search");
|
||||
|
||||
describe('Search with url', function(){
|
||||
|
||||
it('should find album by url', function(done){
|
||||
search("https://play.google.com/music/listen#/album/Bz6wrjczddcj5hurijsv6ohdoay").then(function(result) {
|
||||
result.name.should.equal("Phase 5");
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue