Check powered by header isnt set
This commit is contained in:
parent
251d46b43f
commit
42f5af27f0
1 changed files with 1 additions and 2 deletions
|
@ -55,8 +55,7 @@ describe('Server', function () {
|
||||||
it('Should have no powered by header', function (done) {
|
it('Should have no powered by header', function (done) {
|
||||||
runServer(SERVER_SETTINGS, '/index.html', function (response : any) {
|
runServer(SERVER_SETTINGS, '/index.html', function (response : any) {
|
||||||
expect(response.status).to.equal(200);
|
expect(response.status).to.equal(200);
|
||||||
expect(response.headers.get('x-powered-by')).to.contain('tstatic');
|
expect(response.headers.get('x-powered-by')).to.be.null;
|
||||||
expect(response.headers.get('x-powered-by')).to.contain(PKG.version);
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue