std/http/method_test.ts
Halvard Mørstad a9f3558b85
feat(http/unstable): methods module (#4320)
* Added methods to http namespace

* Renamed type and const

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* Cleaned up methods and added support for jsr

* Fixed linting

* unstable notices

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-06 09:24:45 +00:00

19 lines
532 B
TypeScript

// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { METHOD } from "./method.ts";
import { assertEquals } from "@std/assert";
Deno.test({
name: "METHOD",
fn() {
// just spot check a few common methods
assertEquals(METHOD.Head, "HEAD");
assertEquals(METHOD.Get, "GET");
assertEquals(METHOD.Post, "POST");
assertEquals(METHOD.Put, "PUT");
assertEquals(METHOD.Delete, "DELETE");
assertEquals(METHOD.Options, "OPTIONS");
assertEquals(METHOD.Label, "LABEL");
},
});