Skip to main content
Module

x/deno_isup/test.ts

A (very) simple module to check whether a host is up or not.
Latest
File
import { assertEquals } from 'https://deno.land/std@0.76.0/testing/asserts.ts'import { isUp } from './mod.ts'
Deno.test('Reaching existing host', async () => { assertEquals(await isUp('duckduckgo.com'), true)})
Deno.test('Reaching non-existing host', async () => { assertEquals(await isUp('duckduckgoo.comrade'), false)})