Add tests to action
All checks were successful
ci / build-image (push) Successful in 59s
ci / test-image (push) Successful in 8s

This commit is contained in:
Jonathan Cremin 2025-06-12 18:18:57 +01:00
parent 91d9af097d
commit 4dfd6e93b2
8 changed files with 139 additions and 48 deletions

View file

@ -1,9 +1,11 @@
import 'should';
import lookup from '../lib/lookup.js';
import "should";
import lookup from "../lib/lookup.js";
describe('Search with url', function(){
it('should find album by url', async function (){
const result = await lookup('https://play.google.com/music/m/Bw2bwajaddrgr5vakp3vluqothq');
result.name.should.equal('Breaking');
describe("Search with url", function() {
it("should find album by url", async function() {
const result = await lookup(
"https://open.spotify.com/album/5TbRo1rBrhgHSTB4i2wdZS"
);
result.name.should.equal("Atom Bomb");
});
});