Commit Graph

81 Commits

Author SHA1 Message Date
Dan Hough
4cac72d28b Started writing a test for cli. Quite hard because child_process 2014-04-10 23:36:07 +02:00
Dan Hough
7a061f32a0 Updated to v1.6. Headers now supported. 2014-04-10 22:47:35 +02:00
Dan Hough
7c66bd3f5c Merge branch 'master' of https://github.com/sebs/interfake into sebs-master 2014-04-10 22:17:11 +02:00
Dan Hough
ad581d527b Couple of README errors that need updating on github & npm 2014-04-10 22:12:08 +02:00
Dan Hough
d9ec431570 Updated README to include query bit 2014-04-10 22:09:54 +02:00
Dan Hough
f4fa8f0e77 Wrote an extremely complex test for a simple CRUD API 2014-04-10 22:00:03 +02:00
Dan Hough
cb6a5493d6 Fluent interface for query now works properly even with creation of post-response endpoints 2014-04-10 21:39:16 +02:00
Dan Hough
108f2d5b9c Allows the url component to have query strings w/o fluent 2014-04-10 19:50:22 +02:00
Dan Hough
5e17944d61 Now supporting query params in the fluent interface for #12 2014-04-10 19:23:14 +02:00
Dan Hough
c53dd2d644 A couple of linter fixes and updated readme 2014-04-02 23:40:47 +02:00
Dan Hough
537eac995f Fixed a couple of minor linting errors 2014-04-02 23:21:33 +02:00
Dan Hough
ce53757b76 Removed self and made interfake a module-local obj which is beforeEach set up 2014-04-02 23:20:52 +02:00
Rajit Singh
9d88d61f18 Add support for handling query params
Added createRouteHash() to maintain canonical form of a request.
Use lookup table to store expected responses, with route-hash as key.
Add tests to confirm query params work.
All tests pass, with modifications.
Added afterEach() to ensure interfake.stop() is called after each test, even if the test fails.
2014-03-28 17:21:48 +01:00
Dan Hough
a5aa203d01 Added an example with a delay. Works well\! 2014-03-27 22:13:35 +01:00
Dan Hough
f0ec7fb761 Upped version and added to changelog 2014-03-27 22:09:26 +01:00
Dan Hough
7637524ddb Rebased with bruce-one's changed
Removed lodash dependency and replaced it with core-utils-is. Don't need all of lodash just yet. Closes #9
2014-03-27 22:07:25 +01:00
Bryce Gibson
46c30ea11a Test both the upper and lower end of a delay range 2014-03-24 16:38:36 +11:00
Bryce Gibson
0701f224d7 Use lodash rather than reimplementing some of its methods 2014-03-24 16:17:36 +11:00
Bryce Gibson
0c66c02e8f Support for delaying responses a random amount within a specified range 2014-03-24 16:14:45 +11:00
Dan Hough
613fe30783 Added bruce-one to contributors and updated history 2014-03-22 13:13:26 +00:00
Dan Hough
254beaa2d0 Added some examples for delay 2014-03-22 13:10:01 +00:00
Dan Hough
60b965a283 Bumped version to reflect delay 2014-03-21 14:00:26 +00:00
Dan Hough
7420ae0609 Small changes to style 2014-03-21 13:06:04 +00:00
Sebastian Schürmann
bcd102c7ec Removed debug 2014-03-21 14:05:28 +01:00
Sebastian Schürmann
1d34e84ff2 Setting providing individual response headers 2014-03-21 13:36:20 +01:00
Bryce Gibson
9dad159046 Reduce the delays in the test suite 2014-03-21 08:25:45 +11:00
Bryce Gibson
27013bb761 Adding a delay fluent method 2014-03-21 08:23:29 +11:00
Bryce Gibson
c9f1b40d88 Add a delay parameter for responses.
Basic support for specifying that a response should be delay be an amount of millis.
2014-03-19 14:02:04 +11:00
Dan Hough
79aa9fba66 Fixed error in readme 2014-03-17 12:28:34 +01:00
Daniel Hough
8acef8241d Added works well with 2014-03-16 22:24:56 +01:00
Dan Hough
495d01756c Merge branch 'master' into fluent 2014-03-16 22:12:58 +01:00
Dan Hough
a31013359b Added me as author to readme 2014-03-16 22:09:48 +01:00
Dan Hough
587656ebfc Fixed conflicts in readme. 2014-03-16 22:08:04 +01:00
Dan Hough
73a4eaf215 Updated readme 2014-03-16 22:06:18 +01:00
Dan Hough
364afa9b06 Added an example of how to use this for testing SPAs 2014-03-16 22:05:26 +01:00
Daniel Hough
ecb6ae7562 Update readme.md 2014-03-16 20:25:14 +01:00
Daniel Hough
4c7d6f1e27 Update readme.md 2014-03-16 20:22:04 +01:00
Daniel Hough
62f20cc7df Update readme.md 2014-03-16 20:18:49 +01:00
Daniel Hough
14c5bb851b Update readme.md 2014-03-16 20:14:56 +01:00
Daniel Hough
1207d38bfb Update readme.md 2014-03-16 20:11:27 +01:00
Dan Hough
26686356f9 Fixed crud example and updated readme 2014-03-16 20:09:37 +01:00
Dan Hough
a0425f7ac1 Put tests into the appropriate files. Fixed _request semantics 2014-03-16 19:42:10 +01:00
Dan Hough
19d9aca9d8 Improved debugging and refactored for modularity 2014-03-16 19:28:49 +01:00
Dan Hough
8b17494c81 Fixed some examples and added delete to fluent crud example 2014-03-16 16:19:53 +01:00
Dan Hough
7074df7367 Moved around examples 2014-03-16 11:27:40 +01:00
Dan Hough
7e28f5e5ba Updated readme 2014-03-16 11:16:17 +01:00
Dan Hough
9e5cca5987 Fixed a bug where wrong item was being removed from array during postresponse 2014-03-16 11:15:36 +01:00
Dan Hough
afb532fd4d Now uses .creates and not .then. Not sure it will stay this way. 2014-03-16 11:10:01 +01:00
Dan Hough
7c7e40a6d2 Started updating README for the new fluent interface 2014-03-16 10:37:37 +01:00
Dan Hough
9c0f7cc41e Created some examples for fluency 2014-03-16 10:23:20 +01:00