std/http/header_test.ts
Halvard Mørstad 259ce6dfd2
feat(http/unstable): headers module (#4317)
* Added IANA headers

* Apply suggestions from code review

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

* Cleaned up and added jsr support

* Fixed linting

* unstable notices

---------

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

17 lines
531 B
TypeScript

// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { HEADER } from "./header.ts";
import { assertEquals } from "@std/assert";
Deno.test({
name: "HEADER",
fn() {
// just spot check a few common codes
assertEquals(HEADER.Accept, "Accept");
assertEquals(HEADER.AIm, "A-IM");
assertEquals(HEADER.ClientCertChain, "Client-Cert-Chain");
assertEquals(HEADER.Connection, "Connection");
assertEquals(HEADER.Origin, "Origin");
assertEquals(HEADER.Referer, "Referer");
},
});