(filepath, expected)
| 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' |