combine.fm/test/services/youtube.js
Jonathan Cremin 3cace2860f
Some checks failed
ci / build-image (push) Successful in 56s
ci / test-image (push) Failing after 6s
Add tests to action
2025-06-12 20:36:46 +01:00

23 lines
697 B
JavaScript

import "should";
import * as youtube from "../../lib/services/youtube/index.js";
describe("Youtube", function() {
describe("lookup", function() {
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", async function() {
const result = await youtube.search({
type: "track",
artist: { name: "Aesop Rock" },
album: { name: "Skeconsthon" },
name: "Zero Dark Thirty"
});
result.name.should.startWith("Aesop Rock - Zero Dark Thirty");
});
});
});