podcastindexjs
Version:
client-side JS library for interacting with the Podcast Index API
15 lines (12 loc) • 483 B
text/typescript
import { PodcastIndexClient } from "../index";
describe("categories api", () => {
let client: PodcastIndexClient;
beforeAll(() => {
client = new PodcastIndexClient(process.env.API_KEY ?? "", process.env.API_SECRET ?? "");
});
it("response has Technology", async () => {
const categoriesList = await client.categories();
const tech = categoriesList.feeds.find((f) => f.name === "Technology");
expect(tech).toEqual({ name: "Technology", id: 102 });
});
});