mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Fix cache-control test
no issue - fixed brackets to execute test again
This commit is contained in:
parent
7b3d60b727
commit
93070c60e2
1 changed files with 10 additions and 10 deletions
|
@ -77,18 +77,18 @@ describe('Middleware: cacheControl', function () {
|
|||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
it('will override public with private for private blogs', function (done) {
|
||||
res.isPrivateBlog = true;
|
||||
middleware.cacheControl('public')(null, res, function (a) {
|
||||
should.not.exist(a);
|
||||
res.set.calledOnce.should.be.true;
|
||||
res.set.calledWith({
|
||||
'Cache-Control':
|
||||
'no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0'
|
||||
});
|
||||
done();
|
||||
it('will override public with private for private blogs', function (done) {
|
||||
res.isPrivateBlog = true;
|
||||
middleware.cacheControl('public')(null, res, function (a) {
|
||||
should.not.exist(a);
|
||||
res.set.calledOnce.should.be.true;
|
||||
res.set.calledWith({
|
||||
'Cache-Control':
|
||||
'no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0'
|
||||
});
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue