Skip to content

Commit

Permalink
remove index (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
wydengyre authored Feb 24, 2024
1 parent 120a69d commit 1dab1db
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 1,467 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 0 additions & 18 deletions packages/cf/worker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { strict as assert } from "node:assert";
import { Server, createServer } from "node:http";
import { test } from "node:test";
import { getPodcastFromFeed } from "@podverse/podcast-feed-parser";
import genresJson from "@raiplayrss/rai/test/generi.json" with { type: "json" };
import { assertItalian } from "@raiplayrss/server/test/headers.js";
import { createServerAdapter } from "@whatwg-node/server";
import { Router, RouterType, error, json } from "itty-router";
Expand All @@ -13,7 +12,6 @@ import expectedJson from "./test/lastoriaingiallo.parsed.json" with {
};

test("worker", async (t) => {
await t.test(index);
await t.test(rssFeedSuccess);
await t.test(rssFeedRai404);
await t.test(rssFeedRai500);
Expand All @@ -24,22 +22,6 @@ test("worker", async (t) => {
// uncomment the relevant line in startWorker() for this to take effect
const logLevel = "info";

async function index() {
const router = Router();
router.get("/generi.json", () => json(genresJson));
await using servers = await Servers.createWithRaiRouter(router);

const resp = await servers.worker.fetch("");

assert(resp.ok);
assert.strictEqual(resp.status, 200);
assert.strictEqual(resp.statusText, "OK");
assertItalian(resp);

const _text = await resp.text();
// TODO: validate html
}

async function rssFeedSuccess() {
const router = Router();
router.head(
Expand Down
47 changes: 0 additions & 47 deletions packages/rai/genres.test.ts

This file was deleted.

60 changes: 0 additions & 60 deletions packages/rai/genres.ts

This file was deleted.

Loading

0 comments on commit 1dab1db

Please sign in to comment.