From 42f5af27f03d4cf76a45d0f09d2572710ba25fb4 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 17 Jan 2018 20:40:09 +0000 Subject: [PATCH] Check powered by header isnt set --- tests/server.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/server.test.ts b/tests/server.test.ts index 5ed6199..af3f74f 100644 --- a/tests/server.test.ts +++ b/tests/server.test.ts @@ -55,8 +55,7 @@ describe('Server', function () { it('Should have no powered by header', function (done) { runServer(SERVER_SETTINGS, '/index.html', function (response : any) { expect(response.status).to.equal(200); - expect(response.headers.get('x-powered-by')).to.contain('tstatic'); - expect(response.headers.get('x-powered-by')).to.contain(PKG.version); + expect(response.headers.get('x-powered-by')).to.be.null; done(); }); });