std/http/unstable_method_test.ts

19 lines
541 B
TypeScript
Raw Normal View History

// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { METHOD } from "./unstable_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");
},
});