Skip to content

Commit

Permalink
fix: correct getCursor() test location (#482)
Browse files Browse the repository at this point in the history
Fixes #481
  • Loading branch information
iuioiua authored Sep 2, 2023
1 parent 5580e4e commit ece9ef2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 6 additions & 1 deletion utils/http_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2023 the Deno authors. All rights reserved. MIT license.
import { redirect } from "./http.ts";
import { getCursor, redirect } from "./http.ts";
import { assert, assertEquals } from "std/testing/asserts.ts";

Deno.test("[http] redirect() defaults", () => {
Expand All @@ -22,3 +22,8 @@ Deno.test("[http] redirect()", () => {
assertEquals(resp.headers.get("location"), location);
assertEquals(resp.status, status);
});

Deno.test("[http] getCursor()", () => {
assertEquals(getCursor(new URL("http://example.com")), "");
assertEquals(getCursor(new URL("http://example.com?cursor=here")), "here");
});
8 changes: 0 additions & 8 deletions utils/islands_test.ts

This file was deleted.

0 comments on commit ece9ef2

Please sign in to comment.