bun icon indicating copy to clipboard operation
bun copied to clipboard

docs: remove unncessary use of `async`

Open DaleSeo opened this issue 2 years ago • 2 comments

What does this PR do?

The async keyword is unnecessary and could be misleading because there is no await calls in the test functions.

  • [x] Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • [ ] Code changes

How did you verify your code works?

DaleSeo avatar Jan 22 '24 01:01 DaleSeo

wonder if we should have an example using async and await since it is supported

paperclover avatar Jan 22 '24 01:01 paperclover

@paperdave I found some examples using async on https://bun.sh/docs/test/writing#basic-usage. I have no opinions but I guess this is sufficient?

DaleSeo avatar Jan 22 '24 01:01 DaleSeo