Skip to content

Being able to check the headers of a requestΒ #94

@SalvaCarsi

Description

@SalvaCarsi

✨ Feature proposal

Being able to check the headers of a request

🎯 Motivation

Right now we are using expect(global.fetch).toHaveBeenCalledWith(..., what make the usage kind of tricky.

By moving this to burrito we will provide a simple Api for checking the headers.

In addition I think is a feature that any burrito user will expect to be able to use.

πŸ‘€ Example

In my head it should be part of the function toHaveBeenFetchedWith. For example, something like this:

Screen Shot 2021-07-21 at 14 00 00

πŸ’¬ Comments

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions