-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With delay #34
base: master
Are you sure you want to change the base?
With delay #34
Conversation
@@ -295,4 +295,23 @@ describe('Route Matching - willReturn', () => { | |||
expect(fakeServer.hasMade(route.call.withPath(actualPath).withBodyText(actualBody))).toEqual(true); | |||
expect(fakeServer.hasMade(route.call.withBodyText(actualBody).withPath(actualPath))).toEqual(true); | |||
}); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add some tests for multiple restrictions now that it's supported?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not supported
@@ -55,6 +55,7 @@ const route = fakeServer.http | |||
.get() // Http Method (mandatory). See Supported HTTP Methods section. | |||
.to(pathRegex) // Route Path (mandatory). May be regex | |||
.withBody(object) // Route Restriction (optional). See Route Restrictions section. | |||
.withDelay(ms) // Delay response in ms (optional) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not related to this line, but please update the Route Restrictions
section that several restrictions are now supported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not supported
Add The ability to delay a response to fake latency over the network.
Resolves #1