-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(README): add example of how to use async/await #222
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty nice, thanks. Just a few wording tweaks.
README.md
Outdated
@@ -179,6 +179,17 @@ it("should change the state", function (done) { | |||
|
|||
Notice how `.notify(done)` is hanging directly off of `.should`, instead of appearing after a promise assertion. This indicates to Chai as Promised that it should pass fulfillment or rejection directly through to the testing framework. Thus, the above code will fail with a Chai as Promised error (`"expected promise to be fulfilled…"`) if `promise` is rejected, but will fail with a simple Chai error (`expected "before" to equal "after"`) if `otherState` does not change. | |||
|
|||
### Working with ES7 and Promise-Friendly Test Runners |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"ES7" -> "async
/await
"
README.md
Outdated
@@ -179,6 +179,17 @@ it("should change the state", function (done) { | |||
|
|||
Notice how `.notify(done)` is hanging directly off of `.should`, instead of appearing after a promise assertion. This indicates to Chai as Promised that it should pass fulfillment or rejection directly through to the testing framework. Thus, the above code will fail with a Chai as Promised error (`"expected promise to be fulfilled…"`) if `promise` is rejected, but will fail with a simple Chai error (`expected "before" to equal "after"`) if `otherState` does not change. | |||
|
|||
### Working with ES7 and Promise-Friendly Test Runners | |||
|
|||
Since any assertion that must wait on a promise returns a promise itself, if you're able to use ES7 `async`/`await` and your test runner supports returning a promise from test methods, you can await assertions in tests. In many cases you can avoid using `chai-as-promised` at all by performing a synchronous assertion after an `await`, but awaiting `rejectedWith` is often more convenient than using `try`/`catch` blocks without `chai-as-promised`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove "ES7"
chai-as-promised
-> Chai as Promised in both cases
done |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@redocly/cli](https://togithub.com/Redocly/redocly-cli) | [`1.12.0` -> `1.12.2`](https://renovatebot.com/diffs/npm/@redocly%2fcli/1.12.0/1.12.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@redocly%2fcli/1.12.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@redocly%2fcli/1.12.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@redocly%2fcli/1.12.0/1.12.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@redocly%2fcli/1.12.0/1.12.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [chai-as-promised](https://togithub.com/domenic/chai-as-promised) | [`7.1.1` -> `7.1.2`](https://renovatebot.com/diffs/npm/chai-as-promised/7.1.1/7.1.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/chai-as-promised/7.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/chai-as-promised/7.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/chai-as-promised/7.1.1/7.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/chai-as-promised/7.1.1/7.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [semantic-release](https://togithub.com/semantic-release/semantic-release) | [`23.0.8` -> `23.1.1`](https://renovatebot.com/diffs/npm/semantic-release/23.0.8/23.1.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/semantic-release/23.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/semantic-release/23.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/semantic-release/23.0.8/23.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/semantic-release/23.0.8/23.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [sinon](https://sinonjs.org/) ([source](https://togithub.com/sinonjs/sinon)) | [`17.0.1` -> `17.0.2`](https://renovatebot.com/diffs/npm/sinon/17.0.1/17.0.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/sinon/17.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/sinon/17.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/sinon/17.0.1/17.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/sinon/17.0.1/17.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>Redocly/redocly-cli (@​redocly/cli)</summary> ### [`v1.12.2`](https://togithub.com/Redocly/redocly-cli/releases/tag/%40redocly/cli%401.12.2) [Compare Source](https://togithub.com/Redocly/redocly-cli/compare/@redocly/cli@1.12.1...@redocly/cli@1.12.2) ##### Patch Changes - Updated [@​redocly/openapi-core](https://togithub.com/redocly/openapi-core) to v1.12.2. ### [`v1.12.1`](https://togithub.com/Redocly/redocly-cli/releases/tag/%40redocly/cli%401.12.1) [Compare Source](https://togithub.com/Redocly/redocly-cli/compare/@redocly/cli@1.12.0...@redocly/cli@1.12.1) ##### Patch Changes - Updated [@​redocly/openapi-core](https://togithub.com/redocly/openapi-core) to v1.12.1. </details> <details> <summary>domenic/chai-as-promised (chai-as-promised)</summary> ### [`v7.1.2`](https://togithub.com/chaijs/chai-as-promised/releases/tag/v7.1.2) [Compare Source](https://togithub.com/domenic/chai-as-promised/compare/v7.1.1...v7.1.2) #### What's Changed - docs(README): add example of how to use async/await by [@​jedwards1211](https://togithub.com/jedwards1211) in [https://github.com/chaijs/chai-as-promised/pull/222](https://togithub.com/chaijs/chai-as-promised/pull/222) - Updated README.md to reflect functionality by [@​James-Firth](https://togithub.com/James-Firth) in [https://github.com/chaijs/chai-as-promised/pull/247](https://togithub.com/chaijs/chai-as-promised/pull/247) - feat: support chai 5.x in peer dependency by [@​43081j](https://togithub.com/43081j) in [https://github.com/chaijs/chai-as-promised/pull/284](https://togithub.com/chaijs/chai-as-promised/pull/284) #### New Contributors - [@​jedwards1211](https://togithub.com/jedwards1211) made their first contribution in [https://github.com/chaijs/chai-as-promised/pull/222](https://togithub.com/chaijs/chai-as-promised/pull/222) - [@​James-Firth](https://togithub.com/James-Firth) made their first contribution in [https://github.com/chaijs/chai-as-promised/pull/247](https://togithub.com/chaijs/chai-as-promised/pull/247) - [@​43081j](https://togithub.com/43081j) made their first contribution in [https://github.com/chaijs/chai-as-promised/pull/284](https://togithub.com/chaijs/chai-as-promised/pull/284) **Full Changelog**: chaijs/chai-as-promised@v7.1.1...v7.1.2 </details> <details> <summary>semantic-release/semantic-release (semantic-release)</summary> ### [`v23.1.1`](https://togithub.com/semantic-release/semantic-release/compare/v23.1.0...73bcd0bcdb98322c5c5224ffb55960de114c3fd1) [Compare Source](https://togithub.com/semantic-release/semantic-release/compare/v23.1.0...v23.1.1) ### [`v23.1.0`](https://togithub.com/semantic-release/semantic-release/compare/v23.0.8...3a18bf8677657ab7a88f9d57f49e12b7726c4a19) [Compare Source](https://togithub.com/semantic-release/semantic-release/compare/v23.0.8...v23.1.0) </details> <details> <summary>sinonjs/sinon (sinon)</summary> ### [`v17.0.2`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#1702) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v17.0.1...v17.0.2) - [`f6dca0ba`](https://togithub.com/sinonjs/sinon/commit/f6dca0bac3f228fa917165eca8815d5e2b8a6793) upgrade packages ([#​2595](https://togithub.com/sinonjs/sinon/issues/2595)) (Carl-Erik Kopseng) - [`5025d001`](https://togithub.com/sinonjs/sinon/commit/5025d001401091fd2086cfa2ec69e40cc0da9b65) Avoid return and callArg\* clearing each other's state ([#​2593](https://togithub.com/sinonjs/sinon/issues/2593)) (Carl-Erik Kopseng) > - Partially revert "fix returns does not override call through ([#​2567](https://togithub.com/sinonjs/sinon/issues/2567))" > > <!----> > > - revert to the old manual clearing of props - [`ed068a88`](https://togithub.com/sinonjs/sinon/commit/ed068a886fa37cbd5f886d355824debd69aa1b16) Bump ip from 1.1.8 to 1.1.9 ([#​2587](https://togithub.com/sinonjs/sinon/issues/2587)) (dependabot\[bot]) - [`ec4d592e`](https://togithub.com/sinonjs/sinon/commit/ec4d592ee4faf87d7e592c4b99b3e6fec99105c8) fix [#​2589](https://togithub.com/sinonjs/sinon/issues/2589): avoid invoking getter as side-effect ([#​2592](https://togithub.com/sinonjs/sinon/issues/2592)) (Carl-Erik Kopseng) - [`9972e1e3`](https://togithub.com/sinonjs/sinon/commit/9972e1e3997198ff7f403ca5c000187f890f1699) Fix typo in mocks documentation ([#​2591](https://togithub.com/sinonjs/sinon/issues/2591)) (Eduardo de la Cruz Palacios) - [`52e6e4c5`](https://togithub.com/sinonjs/sinon/commit/52e6e4c540d8d0b95727c9bbde8328f6692a6675) chore: prefer cache option of setup-node (Morgan Roderick) - [`08da1235`](https://togithub.com/sinonjs/sinon/commit/08da123555dc4ee4866720c925215dca4d3c799b) Bump actions/cache from 3 to 4 (dependabot\[bot]) - [`404ef47e`](https://togithub.com/sinonjs/sinon/commit/404ef47e1119c7b8229e9d6a3c6ae9a912305d1f) Bump nokogiri from 1.14.3 to 1.16.2 (dependabot\[bot]) - [`fd79612c`](https://togithub.com/sinonjs/sinon/commit/fd79612c3324bf3264533baa7159bb1722dd9788) Update Bug_report.md (Carl-Erik Kopseng) - [`1fbc812a`](https://togithub.com/sinonjs/sinon/commit/1fbc812a9f3351f55a06758bdc8b1a053135d826) Re-add about (Carl-Erik Kopseng) - [`fc8f6c3e`](https://togithub.com/sinonjs/sinon/commit/fc8f6c3e111473fcb53b2338eb8654b256c06e01) Fix formatting :clown: (Carl-Erik Kopseng) - [`c57e38ae`](https://togithub.com/sinonjs/sinon/commit/c57e38ae2ec6c466f83c4e38e85d3d324f72bb13) Remove old template (Carl-Erik Kopseng) - [`754bf7a9`](https://togithub.com/sinonjs/sinon/commit/754bf7a98b54a01472677772c7a34859f483adeb) Update Bug_report.md (Carl-Erik Kopseng) - [`87eed9d2`](https://togithub.com/sinonjs/sinon/commit/87eed9d255e9493b981494188abd12a9e1d95bf0) Fix some typos at code comments ([#​2581](https://togithub.com/sinonjs/sinon/issues/2581)) (EliyahuMachluf) - [`cbae6997`](https://togithub.com/sinonjs/sinon/commit/cbae69978c29d0420fa39d11496bb29b180361b0) Link to createStubInstance util.md docs in stubs.md ([#​2577](https://togithub.com/sinonjs/sinon/issues/2577)) (Daniel Kaplan) - [`adcf936d`](https://togithub.com/sinonjs/sinon/commit/adcf936de0e946e2b72a513436c0469319f3da79) Fix Mocha watch task by delegating to Node ([#​2573](https://togithub.com/sinonjs/sinon/issues/2573)) (Carl-Erik Kopseng) - [`30ad2372`](https://togithub.com/sinonjs/sinon/commit/30ad23729568d70f865a5e6d323109fd06c7913e) prettier:write (Carl-Erik Kopseng) - [`45c4d6b9`](https://togithub.com/sinonjs/sinon/commit/45c4d6b9b80841947d6ebc4af5046a11b216d598) Remove outdated info from README ([#​2571](https://togithub.com/sinonjs/sinon/issues/2571)) (Carl-Erik Kopseng) - [`6c9f5c2a`](https://togithub.com/sinonjs/sinon/commit/6c9f5c2ade9befeadd6fd7d10232883c147a9f1d) Add a notice that the Fake Timers API doc is incomplete ([#​2570](https://togithub.com/sinonjs/sinon/issues/2570)) (Carl-Erik Kopseng) - [`93db3ef3`](https://togithub.com/sinonjs/sinon/commit/93db3ef3b0b49458954eb6e7ed765aa1ea34b21d) breaking: Remove sinon.defaultConfig and related modules ([#​2565](https://togithub.com/sinonjs/sinon/issues/2565)) (Carl-Erik Kopseng) > - breaking: Remove sinon.defaultConfig and related modules > > default-config and get-config are leftovers from when Sinon > > shipped with sinon.test (now the independent NPM module > > 'sinon-test'). *Released by [Carl-Erik Kopseng](https://togithub.com/fatso83) on 2024-05-07.* </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 2pm on Saturday" in timezone Europe/Zurich, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/adobe/spacecat-audit-post-processor). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@aws-sdk/client-dynamodb](https://togithub.com/aws/aws-sdk-js-v3/tree/main/clients/client-dynamodb) ([source](https://togithub.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-dynamodb)) | [`3.569.0` -> `3.574.0`](https://renovatebot.com/diffs/npm/@aws-sdk%2fclient-dynamodb/3.569.0/3.574.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@aws-sdk%2fclient-dynamodb/3.574.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@aws-sdk%2fclient-dynamodb/3.574.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@aws-sdk%2fclient-dynamodb/3.569.0/3.574.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@aws-sdk%2fclient-dynamodb/3.569.0/3.574.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@aws-sdk/client-s3](https://togithub.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3) ([source](https://togithub.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-s3)) | [`3.569.0` -> `3.574.0`](https://renovatebot.com/diffs/npm/@aws-sdk%2fclient-s3/3.569.0/3.574.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@aws-sdk%2fclient-s3/3.574.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@aws-sdk%2fclient-s3/3.574.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@aws-sdk%2fclient-s3/3.569.0/3.574.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@aws-sdk%2fclient-s3/3.569.0/3.574.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@aws-sdk/client-sqs](https://togithub.com/aws/aws-sdk-js-v3/tree/main/clients/client-sqs) ([source](https://togithub.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-sqs)) | [`3.569.0` -> `3.574.0`](https://renovatebot.com/diffs/npm/@aws-sdk%2fclient-sqs/3.569.0/3.574.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@aws-sdk%2fclient-sqs/3.574.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@aws-sdk%2fclient-sqs/3.574.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@aws-sdk%2fclient-sqs/3.569.0/3.574.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@aws-sdk%2fclient-sqs/3.569.0/3.574.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@aws-sdk/lib-dynamodb](https://togithub.com/aws/aws-sdk-js-v3/tree/main/lib/lib-dynamodb) ([source](https://togithub.com/aws/aws-sdk-js-v3/tree/HEAD/lib/lib-dynamodb)) | [`3.569.0` -> `3.574.0`](https://renovatebot.com/diffs/npm/@aws-sdk%2flib-dynamodb/3.569.0/3.574.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@aws-sdk%2flib-dynamodb/3.574.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@aws-sdk%2flib-dynamodb/3.574.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@aws-sdk%2flib-dynamodb/3.569.0/3.574.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@aws-sdk%2flib-dynamodb/3.569.0/3.574.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@semantic-release/npm](https://togithub.com/semantic-release/npm) | [`12.0.0` -> `12.0.1`](https://renovatebot.com/diffs/npm/@semantic-release%2fnpm/12.0.0/12.0.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@semantic-release%2fnpm/12.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@semantic-release%2fnpm/12.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@semantic-release%2fnpm/12.0.0/12.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@semantic-release%2fnpm/12.0.0/12.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [chai-as-promised](https://togithub.com/domenic/chai-as-promised) | [`7.1.1` -> `7.1.2`](https://renovatebot.com/diffs/npm/chai-as-promised/7.1.1/7.1.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/chai-as-promised/7.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/chai-as-promised/7.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/chai-as-promised/7.1.1/7.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/chai-as-promised/7.1.1/7.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [semantic-release](https://togithub.com/semantic-release/semantic-release) | [`23.0.8` -> `23.1.1`](https://renovatebot.com/diffs/npm/semantic-release/23.0.8/23.1.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/semantic-release/23.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/semantic-release/23.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/semantic-release/23.0.8/23.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/semantic-release/23.0.8/23.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [sinon](https://sinonjs.org/) ([source](https://togithub.com/sinonjs/sinon)) | [`17.0.1` -> `17.0.2`](https://renovatebot.com/diffs/npm/sinon/17.0.1/17.0.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/sinon/17.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/sinon/17.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/sinon/17.0.1/17.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/sinon/17.0.1/17.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>aws/aws-sdk-js-v3 (@​aws-sdk/client-dynamodb)</summary> ### [`v3.574.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-dynamodb/CHANGELOG.md#35740-2024-05-10) [Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.572.0...v3.574.0) **Note:** Version bump only for package [@​aws-sdk/client-dynamodb](https://togithub.com/aws-sdk/client-dynamodb) ### [`v3.572.0`](https://togithub.com/aws/aws-sdk-js-v3/releases/tag/v3.572.0) [Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.569.0...v3.572.0) ##### 3.572.0(2024-05-08) ##### Chores - **middleware-expect-continue:** do not set expect header if using FetchHttpHandler ([#​6046](https://togithub.com/aws/aws-sdk-js-v3/pull/6046)) ([6bb09044](https://togithub.com/aws/aws-sdk-js-v3/commit/6bb0904486ec208e774d35725d3a1dc2fec7029f)) - update core tsconfig based on [@​tsconfig/node16](https://togithub.com/tsconfig/node16) ([#​6038](https://togithub.com/aws/aws-sdk-js-v3/pull/6038)) ([80a4f29f](https://togithub.com/aws/aws-sdk-js-v3/commit/80a4f29fd3f4953cd5491bad0dd5e0b241dd1f71)) - **client-alexa-for-business:** deprecate alexa-for-business ([#​6067](https://togithub.com/aws/aws-sdk-js-v3/pull/6067)) ([246fcede](https://togithub.com/aws/aws-sdk-js-v3/commit/246fcede4151136c5a175db94669264875b08a57)) - **client-honeycode:** deprecate honeycode ([#​6068](https://togithub.com/aws/aws-sdk-js-v3/pull/6068)) ([bd30a99f](https://togithub.com/aws/aws-sdk-js-v3/commit/bd30a99f237830e7b37eb1c2b57e5d6dce1a3d5c)) ##### Documentation Changes - **client-fms:** The policy scope resource tag is always a string value, either a non-empty string or an empty string. ([4f544d7c](https://togithub.com/aws/aws-sdk-js-v3/commit/4f544d7cb597ee4b021c551b88967884935c4466)) ##### New Features - **clients:** update client endpoints as of 2024-05-08 ([1e71a11f](https://togithub.com/aws/aws-sdk-js-v3/commit/1e71a11f9fedaefdf13b9b7ebf0d0e7ac1547c46)) - **client-sqs:** This release adds MessageSystemAttributeNames to ReceiveMessageRequest to replace AttributeNames. ([35284e8f](https://togithub.com/aws/aws-sdk-js-v3/commit/35284e8f06d11a753be4bdf5e84358c038d24159)) - **client-polly:** Add new engine - generative - that builds the most expressive conversational voices. ([daf6bd4c](https://togithub.com/aws/aws-sdk-js-v3/commit/daf6bd4c46fc315cfa037a971d082feb424ee25c)) - **client-ec2:** Adding Precision Hardware Clock (PHC) to public API DescribeInstanceTypes ([711a8ff4](https://togithub.com/aws/aws-sdk-js-v3/commit/711a8ff4e4db701bc19faa32cf84fb4857679717)) - **client-cognito-identity-provider:** Add EXTERNAL_PROVIDER enum value to UserStatusType. ([0189ee3a](https://togithub.com/aws/aws-sdk-js-v3/commit/0189ee3ad9493759adb4be3983dcd0f21cd7350a)) - **client-ecr:** This release adds pull through cache rules support for GitLab container registry in Amazon ECR. ([a05338f5](https://togithub.com/aws/aws-sdk-js-v3/commit/a05338f590a69a98c2c5bbad46a63da2adc04573)) ##### Tests - **middleware-sdk-s3:** only delete the s3-express bucket created by the test ([#​6077](https://togithub.com/aws/aws-sdk-js-v3/pull/6077)) ([20dd7314](https://togithub.com/aws/aws-sdk-js-v3/commit/20dd7314d4b8e870802dbefcd60dda68268cc2ad)) - fix type checks in e2e tests ([#​6075](https://togithub.com/aws/aws-sdk-js-v3/pull/6075)) ([3179af21](https://togithub.com/aws/aws-sdk-js-v3/commit/3179af213e60efb81d9ee90f7d95e3c585bb679d)) - remove deprecated ts-jest globals config ([#​6050](https://togithub.com/aws/aws-sdk-js-v3/pull/6050)) ([67fbd23c](https://togithub.com/aws/aws-sdk-js-v3/commit/67fbd23c5226c67cd860ea7b92ac1ff9eb4a123d)) - fix type checks in unit tests ([#​6071](https://togithub.com/aws/aws-sdk-js-v3/pull/6071)) ([809b7b50](https://togithub.com/aws/aws-sdk-js-v3/commit/809b7b50e23f144b5437d186485e8a67dfe1bd35)) - **lib-dynamodb:** enhance type safety ([#​6074](https://togithub.com/aws/aws-sdk-js-v3/pull/6074)) ([74e4c14b](https://togithub.com/aws/aws-sdk-js-v3/commit/74e4c14b81175471399b25a4b4dd2e0e86e9b711)) *** For list of updated packages, view **updated-packages.md** in **assets-3.572.0.zip** </details> <details> <summary>aws/aws-sdk-js-v3 (@​aws-sdk/client-s3)</summary> ### [`v3.574.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-s3/CHANGELOG.md#35740-2024-05-10) [Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.572.0...v3.574.0) **Note:** Version bump only for package [@​aws-sdk/client-s3](https://togithub.com/aws-sdk/client-s3) ### [`v3.572.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-s3/CHANGELOG.md#35720-2024-05-08) [Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.569.0...v3.572.0) **Note:** Version bump only for package [@​aws-sdk/client-s3](https://togithub.com/aws-sdk/client-s3) </details> <details> <summary>aws/aws-sdk-js-v3 (@​aws-sdk/client-sqs)</summary> ### [`v3.574.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-sqs/CHANGELOG.md#35740-2024-05-10) [Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.572.0...v3.574.0) **Note:** Version bump only for package [@​aws-sdk/client-sqs](https://togithub.com/aws-sdk/client-sqs) ### [`v3.572.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-sqs/CHANGELOG.md#35720-2024-05-08) [Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.569.0...v3.572.0) ##### Features - **client-sqs:** This release adds MessageSystemAttributeNames to ReceiveMessageRequest to replace AttributeNames. ([35284e8](https://togithub.com/aws/aws-sdk-js-v3/commit/35284e8f06d11a753be4bdf5e84358c038d24159)) </details> <details> <summary>aws/aws-sdk-js-v3 (@​aws-sdk/lib-dynamodb)</summary> ### [`v3.574.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/lib/lib-dynamodb/CHANGELOG.md#35740-2024-05-10) [Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.572.0...v3.574.0) **Note:** Version bump only for package [@​aws-sdk/lib-dynamodb](https://togithub.com/aws-sdk/lib-dynamodb) ### [`v3.572.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/lib/lib-dynamodb/CHANGELOG.md#35720-2024-05-08) [Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.569.0...v3.572.0) **Note:** Version bump only for package [@​aws-sdk/lib-dynamodb](https://togithub.com/aws-sdk/lib-dynamodb) </details> <details> <summary>semantic-release/npm (@​semantic-release/npm)</summary> ### [`v12.0.1`](https://togithub.com/semantic-release/npm/compare/v12.0.0...9ac5ed00021db4a7e2799b87ecf1b8f4fb7bede6) [Compare Source](https://togithub.com/semantic-release/npm/compare/v12.0.0...v12.0.1) </details> <details> <summary>domenic/chai-as-promised (chai-as-promised)</summary> ### [`v7.1.2`](https://togithub.com/chaijs/chai-as-promised/releases/tag/v7.1.2) [Compare Source](https://togithub.com/domenic/chai-as-promised/compare/v7.1.1...v7.1.2) #### What's Changed - docs(README): add example of how to use async/await by [@​jedwards1211](https://togithub.com/jedwards1211) in [https://github.com/chaijs/chai-as-promised/pull/222](https://togithub.com/chaijs/chai-as-promised/pull/222) - Updated README.md to reflect functionality by [@​James-Firth](https://togithub.com/James-Firth) in [https://github.com/chaijs/chai-as-promised/pull/247](https://togithub.com/chaijs/chai-as-promised/pull/247) - feat: support chai 5.x in peer dependency by [@​43081j](https://togithub.com/43081j) in [https://github.com/chaijs/chai-as-promised/pull/284](https://togithub.com/chaijs/chai-as-promised/pull/284) #### New Contributors - [@​jedwards1211](https://togithub.com/jedwards1211) made their first contribution in [https://github.com/chaijs/chai-as-promised/pull/222](https://togithub.com/chaijs/chai-as-promised/pull/222) - [@​James-Firth](https://togithub.com/James-Firth) made their first contribution in [https://github.com/chaijs/chai-as-promised/pull/247](https://togithub.com/chaijs/chai-as-promised/pull/247) - [@​43081j](https://togithub.com/43081j) made their first contribution in [https://github.com/chaijs/chai-as-promised/pull/284](https://togithub.com/chaijs/chai-as-promised/pull/284) **Full Changelog**: chaijs/chai-as-promised@v7.1.1...v7.1.2 </details> <details> <summary>semantic-release/semantic-release (semantic-release)</summary> ### [`v23.1.1`](https://togithub.com/semantic-release/semantic-release/compare/v23.1.0...73bcd0bcdb98322c5c5224ffb55960de114c3fd1) [Compare Source](https://togithub.com/semantic-release/semantic-release/compare/v23.1.0...v23.1.1) ### [`v23.1.0`](https://togithub.com/semantic-release/semantic-release/compare/v23.0.8...3a18bf8677657ab7a88f9d57f49e12b7726c4a19) [Compare Source](https://togithub.com/semantic-release/semantic-release/compare/v23.0.8...v23.1.0) </details> <details> <summary>sinonjs/sinon (sinon)</summary> ### [`v17.0.2`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#1702) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v17.0.1...v17.0.2) - [`f6dca0ba`](https://togithub.com/sinonjs/sinon/commit/f6dca0bac3f228fa917165eca8815d5e2b8a6793) upgrade packages ([#​2595](https://togithub.com/sinonjs/sinon/issues/2595)) (Carl-Erik Kopseng) - [`5025d001`](https://togithub.com/sinonjs/sinon/commit/5025d001401091fd2086cfa2ec69e40cc0da9b65) Avoid return and callArg\* clearing each other's state ([#​2593](https://togithub.com/sinonjs/sinon/issues/2593)) (Carl-Erik Kopseng) > - Partially revert "fix returns does not override call through ([#​2567](https://togithub.com/sinonjs/sinon/issues/2567))" > > <!----> > > - revert to the old manual clearing of props - [`ed068a88`](https://togithub.com/sinonjs/sinon/commit/ed068a886fa37cbd5f886d355824debd69aa1b16) Bump ip from 1.1.8 to 1.1.9 ([#​2587](https://togithub.com/sinonjs/sinon/issues/2587)) (dependabot\[bot]) - [`ec4d592e`](https://togithub.com/sinonjs/sinon/commit/ec4d592ee4faf87d7e592c4b99b3e6fec99105c8) fix [#​2589](https://togithub.com/sinonjs/sinon/issues/2589): avoid invoking getter as side-effect ([#​2592](https://togithub.com/sinonjs/sinon/issues/2592)) (Carl-Erik Kopseng) - [`9972e1e3`](https://togithub.com/sinonjs/sinon/commit/9972e1e3997198ff7f403ca5c000187f890f1699) Fix typo in mocks documentation ([#​2591](https://togithub.com/sinonjs/sinon/issues/2591)) (Eduardo de la Cruz Palacios) - [`52e6e4c5`](https://togithub.com/sinonjs/sinon/commit/52e6e4c540d8d0b95727c9bbde8328f6692a6675) chore: prefer cache option of setup-node (Morgan Roderick) - [`08da1235`](https://togithub.com/sinonjs/sinon/commit/08da123555dc4ee4866720c925215dca4d3c799b) Bump actions/cache from 3 to 4 (dependabot\[bot]) - [`404ef47e`](https://togithub.com/sinonjs/sinon/commit/404ef47e1119c7b8229e9d6a3c6ae9a912305d1f) Bump nokogiri from 1.14.3 to 1.16.2 (dependabot\[bot]) - [`fd79612c`](https://togithub.com/sinonjs/sinon/commit/fd79612c3324bf3264533baa7159bb1722dd9788) Update Bug_report.md (Carl-Erik Kopseng) - [`1fbc812a`](https://togithub.com/sinonjs/sinon/commit/1fbc812a9f3351f55a06758bdc8b1a053135d826) Re-add about (Carl-Erik Kopseng) - [`fc8f6c3e`](https://togithub.com/sinonjs/sinon/commit/fc8f6c3e111473fcb53b2338eb8654b256c06e01) Fix formatting :clown: (Carl-Erik Kopseng) - [`c57e38ae`](https://togithub.com/sinonjs/sinon/commit/c57e38ae2ec6c466f83c4e38e85d3d324f72bb13) Remove old template (Carl-Erik Kopseng) - [`754bf7a9`](https://togithub.com/sinonjs/sinon/commit/754bf7a98b54a01472677772c7a34859f483adeb) Update Bug_report.md (Carl-Erik Kopseng) - [`87eed9d2`](https://togithub.com/sinonjs/sinon/commit/87eed9d255e9493b981494188abd12a9e1d95bf0) Fix some typos at code comments ([#​2581](https://togithub.com/sinonjs/sinon/issues/2581)) (EliyahuMachluf) - [`cbae6997`](https://togithub.com/sinonjs/sinon/commit/cbae69978c29d0420fa39d11496bb29b180361b0) Link to createStubInstance util.md docs in stubs.md ([#​2577](https://togithub.com/sinonjs/sinon/issues/2577)) (Daniel Kaplan) - [`adcf936d`](https://togithub.com/sinonjs/sinon/commit/adcf936de0e946e2b72a513436c0469319f3da79) Fix Mocha watch task by delegating to Node ([#​2573](https://togithub.com/sinonjs/sinon/issues/2573)) (Carl-Erik Kopseng) - [`30ad2372`](https://togithub.com/sinonjs/sinon/commit/30ad23729568d70f865a5e6d323109fd06c7913e) prettier:write (Carl-Erik Kopseng) - [`45c4d6b9`](https://togithub.com/sinonjs/sinon/commit/45c4d6b9b80841947d6ebc4af5046a11b216d598) Remove outdated info from README ([#​2571](https://togithub.com/sinonjs/sinon/issues/2571)) (Carl-Erik Kopseng) - [`6c9f5c2a`](https://togithub.com/sinonjs/sinon/commit/6c9f5c2ade9befeadd6fd7d10232883c147a9f1d) Add a notice that the Fake Timers API doc is incomplete ([#​2570](https://togithub.com/sinonjs/sinon/issues/2570)) (Carl-Erik Kopseng) - [`93db3ef3`](https://togithub.com/sinonjs/sinon/commit/93db3ef3b0b49458954eb6e7ed765aa1ea34b21d) breaking: Remove sinon.defaultConfig and related modules ([#​2565](https://togithub.com/sinonjs/sinon/issues/2565)) (Carl-Erik Kopseng) > - breaking: Remove sinon.defaultConfig and related modules > > default-config and get-config are leftovers from when Sinon > > shipped with sinon.test (now the independent NPM module > > 'sinon-test'). *Released by [Carl-Erik Kopseng](https://togithub.com/fatso83) on 2024-05-07.* </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 2pm on Saturday" in timezone Europe/Zurich, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/adobe/spacecat-shared). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [chai-as-promised](https://togithub.com/domenic/chai-as-promised) | [`7.1.1` -> `7.1.2`](https://renovatebot.com/diffs/npm/chai-as-promised/7.1.1/7.1.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/chai-as-promised/7.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/chai-as-promised/7.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/chai-as-promised/7.1.1/7.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/chai-as-promised/7.1.1/7.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>domenic/chai-as-promised (chai-as-promised)</summary> ### [`v7.1.2`](https://togithub.com/chaijs/chai-as-promised/releases/tag/v7.1.2) [Compare Source](https://togithub.com/domenic/chai-as-promised/compare/v7.1.1...v7.1.2) #### What's Changed - docs(README): add example of how to use async/await by [@​jedwards1211](https://togithub.com/jedwards1211) in [https://github.com/chaijs/chai-as-promised/pull/222](https://togithub.com/chaijs/chai-as-promised/pull/222) - Updated README.md to reflect functionality by [@​James-Firth](https://togithub.com/James-Firth) in [https://github.com/chaijs/chai-as-promised/pull/247](https://togithub.com/chaijs/chai-as-promised/pull/247) - feat: support chai 5.x in peer dependency by [@​43081j](https://togithub.com/43081j) in [https://github.com/chaijs/chai-as-promised/pull/284](https://togithub.com/chaijs/chai-as-promised/pull/284) #### New Contributors - [@​jedwards1211](https://togithub.com/jedwards1211) made their first contribution in [https://github.com/chaijs/chai-as-promised/pull/222](https://togithub.com/chaijs/chai-as-promised/pull/222) - [@​James-Firth](https://togithub.com/James-Firth) made their first contribution in [https://github.com/chaijs/chai-as-promised/pull/247](https://togithub.com/chaijs/chai-as-promised/pull/247) - [@​43081j](https://togithub.com/43081j) made their first contribution in [https://github.com/chaijs/chai-as-promised/pull/284](https://togithub.com/chaijs/chai-as-promised/pull/284) **Full Changelog**: chaijs/chai-as-promised@v7.1.1...v7.1.2 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/cap-js/cds-dbs). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This was not immediately clear to me, so I added an example of it.