Skip to content

Commit bb5e077

Browse files
committed
test: getCompressionPlugin.spec.ts
1 parent 8a19fb3 commit bb5e077

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/middleware-compression/src/getCompressionPlugin.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ jest.mock("./compressionMiddleware");
66
describe(getCompressionPlugin.name, () => {
77
const config = {
88
bodyLengthChecker: jest.fn(),
9-
disableRequestCompression: false,
10-
requestMinCompressionSizeBytes: 0,
9+
disableRequestCompression: () => Promise.resolve(false),
10+
requestMinCompressionSizeBytes: () => Promise.resolve(0),
1111
};
1212
const middlewareConfig = { encodings: [] };
1313

0 commit comments

Comments
 (0)