Skip to content

Unnecessary await in code examples #24473

@Darckfast

Description

@Darckfast

Existing documentation URL(s)

What changes are you suggesting?

Both code examples have a await on the response.status

  //....
    expect(await response.status).toBe(404); //<- here
    expect(await response.text()).toBe("Not found");
 //...

the status in the response is an unsigned short value, so the await on the response.status can be removed

Additional information

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions