-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt at allowing for asynchronous responses
This solve the issues presented in both #93 and #134 without changing existing behavior. The usage would include just adding a second paramater to your response function callback. When present, mockjax would wait for it to be called before finishing the request. See the new test for an example.
- Loading branch information
Showing
2 changed files
with
75 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters