Skip to content

Recognizing routes with queryParams #53

Open
@CamonZ

Description

@CamonZ

Hi, over at @stackbuilders/all we're using route-recognizer as part of pretender.js to test an Ember app.

We have a complex scenario we're we are calling a backend endpoint with different query params to get a filtered collection of items leaving us with very complex test code where we map the params to what the responses should be.

From looking at the code of the library you guys are already adding the endpoint with the query params but when recognizing it you guys are dropping the query params leaving the recognize without viable solutions because it can't find any handlers for the route without the query params

Is this the intended behaviour, would making a patch for it to match the url with the queryParams make sense to you?

EDIT: Updated the code references to v0.1.9 which was the version used at the time I reported this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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