You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test("can register queryParam urls",function(){varqueryCalled=false;varnoQueryCalled=false;pretender.get('/some/path?a=1&b=2',function(request){queryCalled=true;});pretender.get('/some/path',function(request){noQueryCalled=true;});$.ajax({url: '/some/path?a=1&b=2'});ok(!noQueryCalled,'should be false');ok(queryCalled,'should be true');});
It appears that RotueRecognizer will register the original path along with the queryParams. However in the linked function above the queryParams are striped from the path and no handler is found for the truncated path.
Failing test:
I have tracked the problem down to RouteRecognizer: https://github.com/tildeio/route-recognizer/blob/master/lib/route-recognizer.js#L475-L523
It appears that RotueRecognizer will register the original path along with the queryParams. However in the linked function above the queryParams are striped from the path and no handler is found for the truncated path.
My use-case is https://github.com/dockyard/ember-cli-proxy-fixtures. This module is recording request responses during the test suite for faster playback via Pretender on future runs.
The text was updated successfully, but these errors were encountered: