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