Skip to content

Commit e7a051c

Browse files
committed
Remove an unnecessary await in tests.
1 parent 1135035 commit e7a051c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
- Removed the Node.js CLI option `--unhandled-rejections=throw` in the package script `tests` as it’s now the default for all supported Node.js versions.
4343
- Avoid hardcoding a default value in the type `FileUploadCreateReadStreamOptions` property `highWaterMark` description and use the function `getDefaultHighWaterMark` from `node:stream` in tests.
4444
- Replaced the test helper class `Deferred` with polyfilled `Promise.withResolvers`.
45+
- Removed an unnecessary `await` in tests.
4546
- Omit unused catch bindings in the function `processRequest`.
4647
- Corrected the JSDoc type `FileUploadCreateReadStreamOptions` in the module `processRequest.mjs`.
4748
- Avoid using `return` in the middleware.

processRequest.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ describe(
686686
const { createReadStream } =
687687
await operation.variables.files[0].promise;
688688

689-
await throws(
689+
throws(
690690
() => {
691691
createReadStream();
692692
},

0 commit comments

Comments
 (0)