Add lookupAlbum to be find albums from URL
This commit is contained in:
parent
6f5f361393
commit
2119ac5c4d
2 changed files with 67 additions and 3 deletions
|
@ -2,6 +2,17 @@ import 'should';
|
|||
import * as ytmusic from '../../lib/services/ytmusic/index.js';
|
||||
|
||||
describe('ytmusic', function(){
|
||||
describe('lookupId', () => {
|
||||
it('should find album by ID', async function testV() {
|
||||
const result = await ytmusic.lookupId('MPREb_nlOKEssnatr', 'album');
|
||||
result.name.should.equal('Carne de Pescoço');
|
||||
});
|
||||
|
||||
it('should find track by ID', async function (){
|
||||
const result = await ytmusic.lookupId('9zrYXvUXiQk', 'track');
|
||||
result.name.should.equal('One Vision (Remastered 2011)');
|
||||
});
|
||||
});
|
||||
describe('lookupUrl', () => {
|
||||
describe('parseUrl', () => {
|
||||
it('should parse track url into ID', async function (){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue