Skip to main content
Module

x/servest/util_test.ts

🌾A progressive http server for Deno🌾
Go to Latest
File
// Copyright 2019 Yusuke Sakurai. All rights reserved. MIT license.import { test, runIfMain } from "./vendor/https/deno.land/std/testing/mod.ts";import { assertEquals } from "./vendor/https/deno.land/std/testing/asserts.ts";import { dateToDateHeader } from "./util.ts";
test("dateToDateHeader", function() { const res = dateToDateHeader(new Date("2019-09-15T08:20:15Z")); assertEquals(res, "Sun, 15 Sep 2019 08:20:15 GMT");});runIfMain(import.meta);