Skip to content

Commit 00dedba

Browse files
committed
test: preCompressed disabled
1 parent bf427b2 commit 00dedba

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,19 @@ describe('server', () => {
133133
hexo.config.server.preCompressed = false;
134134
});
135135
});
136+
137+
it('Disable', () => {
138+
hexo.config.server.preCompressed = false;
139+
140+
return Promise.using(
141+
prepareServer(),
142+
app => request(app)
143+
.get('/foo%20bar.js')
144+
.then(res => {
145+
res.headers.should.not.have.property('Content-Encoding');
146+
})
147+
);
148+
});
136149
});
137150

138151
it('Enable compression if options.compress is true', () => {

0 commit comments

Comments
 (0)