mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +00:00
a9f3558b85
* 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>
19 lines
532 B
TypeScript
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");
|
|
},
|
|
});
|