UNPKG

st

Version:

A module for serving static files. Does etags, caching, etc.

22 lines (17 loc) 408 B
import { test } from './support/tap-shim.js' global.dot = true const { req } = await import('./support/dot-common.js') test('non-dotted file', (t) => { req('/index.html', (er, res, body) => { t.error(er) t.equal(res.statusCode, 200) t.end() }) }) test('dotted file', (t) => { req('/.index.html', (er, res, body) => { t.error(er) t.equal(res.statusCode, 200) t.end() }) })