Łukasz Fiszer
Łukasz Fiszer
In the current version of Caman the `nodeFileReady` function is polluting the global namespace. I'm not very confident with CoffeeScript so this commit may not be the best/valid way of...
This PR will introduce `mockiavelli.passThrough` method, that gives user the ability to define which endpoints should not be mocked (requested in #10 ): ```typescript mockiavelli.passThrough('/do/not/mock'); ``` Any request that matches...
The current mock mechanism is "strict" regarding trailing slashes: ``` mockiavelli.mockGET('/example', {status: 200}) // GET /example/ => 404 ``` This behaviour should be at least configurable to allow ignoring trailing...
Sample log (with `debug:true` and `dumpio: true`. The request to `/auth/oauth/token` is not replied correctly ``` [2021-04-16T10:15:22.133Z] 2021-04-16T10:15:21.098Z mockiavelli:main > req: type=other method=OPTIONS url=https://example.com/auth/oauth/token [2021-04-16T10:15:22.133Z] [0416/101521.106580:INFO:CONSOLE(0)] "Access to XMLHttpRequest at...
Mocking requests containing non-ASCII chars in URL: ``` mockiavelli.mockGET('/users/Łukasz Żółw`, {status: 200}) ``` never works - mock returns 404