2024-08-06 09:24:45 +00:00
|
|
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
|
2024-09-11 11:23:59 +00:00
|
|
|
import { METHOD } from "./unstable_method.ts";
|
2024-08-06 09:24:45 +00:00
|
|
|
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");
|
|
|
|
},
|
|
|
|
});
|