// Load the custom 500 file and carry out the transformations that the 500 route would perform. Then strip
// it of whitespace and compare to the response we got, also stripped of whitespace.
constexpectedCustom500ResponseBodyDeflated=fs.readFileSync(path.join(__dirname,'site','500','index.html'),'utf-8').replace('THE_ERROR','Bad things have happened.').replace('<head>','<head>\n\t<base href="/500/">').replace(/\s/g,'')
t.equal(responseCustom500.statusCode,500,'response status code is 500')
t.equal(responseCustom500.body.replace(/\s/g,''),expectedCustom500ResponseBodyDeflated,'custom 500 response body is as expected')