Skip to content

Commit 6b7cee9

Browse files
committed
Revert "test: use function instead of arrow functions"
This reverts commit f0fa971.
1 parent fa7244a commit 6b7cee9

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

packages/middleware-flexible-checksums/src/middleware-flexible-checksums.retry.integ.spec.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ describe("middleware-flexible-checksums.retry", () => {
1717
});
1818

1919
let flexChecksCallCount = 0;
20-
function flexChecksCallCountMiddleware(next: any) {
21-
return async function (args: any) {
22-
console.log("after flexChecks");
23-
flexChecksCallCount++;
24-
return next(args);
25-
};
26-
}
20+
const flexChecksCallCountMiddleware = (next: any) => async (args: any) => {
21+
console.log("after flexChecks");
22+
flexChecksCallCount++;
23+
return next(args);
24+
};
2725
client.middlewareStack.addRelativeTo(flexChecksCallCountMiddleware, {
2826
name: flexChecksCallCountMiddleware.name,
2927
toMiddleware: "flexibleChecksumsMiddleware",

0 commit comments

Comments
 (0)