mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
19 lines
541 B
TypeScript
19 lines
541 B
TypeScript
// 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");
|
|
},
|
|
});
|