Add more async
This commit is contained in:
parent
7be2b7b97a
commit
8ea8b4d279
14 changed files with 108 additions and 300 deletions
|
@ -3,15 +3,15 @@ import * as youtube from '../../lib/services/youtube';
|
|||
|
||||
describe('Youtube', function(){
|
||||
describe('lookup', function(){
|
||||
it('should find album by lookup', function* (){
|
||||
const result = yield youtube.lookupId('6JnGBs88sL0');
|
||||
it('should find album by lookup', async function (){
|
||||
const result = await youtube.lookupId('6JnGBs88sL0');
|
||||
result.name.should.equal('Say It Right');
|
||||
});
|
||||
});
|
||||
|
||||
describe('search', function(){
|
||||
it('should find album by search', function* (){
|
||||
const result = yield youtube.search({type: 'track', artist: {name: 'Aesop Rock'}, album: {name: 'Skeconsthon'}, name: 'Zero Dark Thirty'});
|
||||
it('should find album by search', async function (){
|
||||
const result = await youtube.search({type: 'track', artist: {name: 'Aesop Rock'}, album: {name: 'Skeconsthon'}, name: 'Zero Dark Thirty'});
|
||||
result.name.should.equal('Aesop Rock - Zero Dark Thirty (Official Video)');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue