mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-20 01:55:26 -05:00
Migrate Node -> Bun (#1827)
* Initial * Faster user page * Remove redundant function * Favorite badge sorting * Upgrade deps * Simplify entry.server * Bun tests initial * Update package.json npm -> bun * Update README * Type safe translations again * Don't load streams info for finalized tournaments * Translations as an object * More unit test work * Convert match.server.test * test * test * test * test * test * test * test * test * test * test * test * test * test * test * test * test * test * Test & all done * Working cf * Bun GA try * No cache * spacing * spacing 2 * Add SQL logging * Remove NR * Hmm * Hmm 2 * Interesting * SKALOP_SYSTEM_MESSAGE_URL * . * . * ? * . * ? * Server.ts adjust * Downgrade Tldraw * E2E test fix * Fix lint
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
import { suite } from "uvu";
|
||||
import * as assert from "uvu/assert";
|
||||
import { describe, expect, test } from "bun:test";
|
||||
import { pathnameFromPotentialURL } from "./strings";
|
||||
|
||||
const PathnameFromPotentialURL = suite("pathnameFromPotentialURL()");
|
||||
describe("pathnameFromPotentialURL()", () => {
|
||||
test("Resolves path name from valid URL", () => {
|
||||
expect(pathnameFromPotentialURL("https://twitter.com/sendouc")).toBe(
|
||||
"sendouc",
|
||||
);
|
||||
});
|
||||
|
||||
PathnameFromPotentialURL("Resolves path name from valid URL", () => {
|
||||
assert.is(pathnameFromPotentialURL("https://twitter.com/sendouc"), "sendouc");
|
||||
test("Returns string as is if not URL", () => {
|
||||
expect(pathnameFromPotentialURL("sendouc")).toBe("sendouc");
|
||||
});
|
||||
});
|
||||
|
||||
PathnameFromPotentialURL("Returns string as is if not URL", () => {
|
||||
assert.is(pathnameFromPotentialURL("sendouc"), "sendouc");
|
||||
});
|
||||
|
||||
PathnameFromPotentialURL.run();
|
||||
|
||||
Reference in New Issue
Block a user