MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / defaultErrorPage

Function defaultErrorPage

test/integration/errors-test.mjs:22–30  ·  view source on GitHub ↗
(filepath, expected)

Source from the content-addressed store, hash-verified

20 })
21
22 function defaultErrorPage (filepath, expected) {
23 const handler = function (res) {
24 const errorFile = read(filepath)
25 if (res.text === errorFile && !expected) {
26 console.log('Not default text')
27 }
28 }
29 return handler
30 }
31
32 describe('noErrorPages', function () {
33 const file404 = 'errorPages/404.html'

Callers 1

errors-test.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected