Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Unmock transform sensitive to extraneous backslashes #405

Open
mikesol opened this issue Apr 1, 2020 · 0 comments
Open

Unmock transform sensitive to extraneous backslashes #405

mikesol opened this issue Apr 1, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@mikesol
Copy link

mikesol commented Apr 1, 2020

Description

The transform commands are sensitive to a lack or addition of backslashes. For example, if a service is defined:

u.nock("https://api.example.com").get("/a/").reply(200,{});

Then

transform.responseBody("/a")

Won't work, but

transform.responseBody("/a/")

will.

@mikesol mikesol added the bug Something isn't working label Apr 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant