Skip to main content
Module

x/response_creators/test/index.test.js

Helper functions to create Fetch API Response objects based on HTTP status codes
Latest
File
import 'https://gist.githubusercontent.com/qwtel/b14f0f81e3a96189f7771f83ee113f64/raw/TestRequest.ts'import { assert, assertExists, assertEquals, assertStrictEquals, assertStringIncludes, assertThrows, assertRejects, assertArrayIncludes,} from 'https://deno.land/std@0.133.0/testing/asserts.ts'const { test } = Deno;
import { ok } from '../index.ts'
test('exists', () =>{ assertExists(ok)})
test('exists II', () =>{ assertExists(ok())})
test('instanceof response ', () =>{ assert(ok() instanceof Response)})