Test missing HSTS header
This commit is contained in:
parent
ac29b7f932
commit
b86ce01aa2
1 changed files with 8 additions and 0 deletions
|
@ -108,5 +108,13 @@ describe('Server', function () {
|
|||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('Should not have HSTS header if HTTP is allowed', function (done) {
|
||||
runServer({...SERVER_SETTINGS, allowHttp: true}, '/index.html', function (response : any) {
|
||||
expect(response.status).to.equal(200);
|
||||
expect(response.headers.get('strict-transport-security')).to.be.null;
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Reference in a new issue