deno.land / std@0.166.0 / http / util_test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.import { compareEtag } from "./util.ts";import { assert } from "../testing/asserts.ts";
Deno.test("createEtag", () => { const ETAG_A = `"d64dea47ee6fd90800ec546c2544abfb"`; const ETAG_B = `"3c09cc24b81163fc20b80fd26eed4832"`; assert(compareEtag(ETAG_A, ETAG_A)); assert(!compareEtag(ETAG_A, ETAG_B)); assert(compareEtag(ETAG_A, `W/${ETAG_A}`)); assert(compareEtag(`W/${ETAG_A}`, ETAG_A));});
std
Deno standard library
GitHub Repositorydenoland/deno_std
GitHub Stars
2457

Version Info

Tagged at
2 months ago