Skip to content

Being able to match strictly a url pathΒ #114

@SalvaCarsi

Description

@SalvaCarsi

✨ Feature proposal

Being able to match strictly a url path

🎯 Motivation

I will explain it with some examples, for better clarity.

With the current implementation this two expect will be true.

expect('/managers/').toHaveBeenFetched()
expect('/managers/?basic_data=incomplete').toHaveBeenFetched()

πŸ‘€ Example

My idea is to have a mechanism to make exact match on the url. Something in the lines of

expect('/managers/').toHaveBeenFetchedExactPath()

πŸ’¬ Comments

There could be the possibility of making the current implementation of toHaveBeenFetched and alike to always match exactly. But I don't know if that may be a too aggressive change for the library.

Metadata

Metadata

Assignees

No one assigned

    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