text: import assert       from "assert";
  import { extract }  from "../../../src/core/scrapers.js";
  import { complete } from "../../../src/core/labellers.js";
  
  describe("Labeller: SoundCloud", function () {
      it("should return audio label", async function () {
          const url = new URL("https://soundcloud.com/esa/hear-the-lightning");
          const options = { depth: false, incognito: false };
  
          const file = await extract(url, options);
          const item = await complete({ file, label: "play", type: "unknown" });
          assert.deepStrictEqual(item, {
              file,
              label: "Hear the lightning",
              type:  "unknown",
          });
      });
  
      it("should return set label", async function () {
          const url = new URL("https://soundcloud.com/esa/sets/news-views");
          const options = { depth: false, incognito: false };
  
          const file = await extract(url, options);
          const item = await complete({ file, label: "play", type: "unknown" });
          assert.deepStrictEqual(item, {
              file,
              label: "News & Views",
              type:  "unknown",
          });
      });
  
      it("should return dynamic set label", async function () {
          const url = new URL("https://soundcloud.com/discover/sets" +
                                                   "/charts-top:alternativerock");
          const options = { depth: false, incognito: false };
  
          const file = await extract(url, options);
          const item = await complete({ file, label: "play", type: "unknown" });
          assert.deepStrictEqual(item, {
              file,
              label: "Top 50: Alternative Rock",
              type:  "unknown",
          });
      });
  });
  