Check powered by header isnt set

This commit is contained in:
Jake Howard 2018-01-17 20:40:09 +00:00
parent 251d46b43f
commit 42f5af27f0
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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();
});
});