Skip to content

Commit 6454c11

Browse files
committed
fix(next-server): fix test to use new api
1 parent b7a4770 commit 6454c11

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/unit/next-server-compress.unit.test.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -514,11 +514,10 @@ function shouldNotHaveHeader(header) {
514514

515515
function createServer(opts, fn) {
516516
const _compression = Compression(opts)
517-
return http.createServer(
518-
_compression((req, res) => {
519-
fn(req, res)
520-
})
521-
)
517+
return http.createServer((req, res) => {
518+
_compression(req, res)
519+
fn(req, res)
520+
})
522521
}
523522

524523
function after(count, callback, err_cb) {

0 commit comments

Comments
 (0)