denoland / deno_std

The Deno Standard Library
https://jsr.io/@std
MIT License
2.83k stars 582 forks source link

fix(expect): make `.not` aware of whether is it is in async context #5308

Closed lowlighter closed 2 days ago

lowlighter commented 3 days ago

Makes it possible to use resolves.not without hinting error (else you need to use not.resolves to ditch out this warning but it feels more awkard)

codecov[bot] commented 3 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.81%. Comparing base (81943c3) to head (aa0e851).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #5308 +/- ## ======================================= Coverage 95.81% 95.81% ======================================= Files 458 458 Lines 37883 37883 Branches 5567 5567 ======================================= Hits 36298 36298 Misses 1545 1545 Partials 40 40 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.