combine.fm/test/services/youtube.js

24 lines
697 B
JavaScript
Raw Normal View History

2025-06-12 18:18:57 +01:00
import "should";
import * as youtube from "../../lib/services/youtube/index.js";
2025-06-12 18:18:57 +01:00
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");
2017-07-20 14:31:07 +01:00
});
});
2025-06-12 18:18:57 +01:00
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");
});
});
});