Switch to Koa, more es6
This commit is contained in:
parent
1090affc9c
commit
b3abff99ae
36 changed files with 25573 additions and 928 deletions
|
@ -1,15 +1,9 @@
|
|||
"use strict";
|
||||
require('should');
|
||||
|
||||
var lookup = require("../lib/lookup");
|
||||
import 'should';
|
||||
import lookup from '../lib/lookup';
|
||||
|
||||
describe('Search with url', function(){
|
||||
|
||||
it('should find album by url', function(done){
|
||||
lookup("https://play.google.com/music/listen#/album/Bz6wrjczddcj5hurijsv6ohdoay").then(function(result) {
|
||||
result.name.should.equal("Phase 5");
|
||||
done();
|
||||
});
|
||||
it('should find album by url', function* (){
|
||||
let result = yield lookup('https://play.google.com/music/listen#/album/Bz6wrjczddcj5hurijsv6ohdoay');
|
||||
result.name.should.equal('Phase 5');
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue