Dan Hough
19cac85c84
Arrays are handled as expected by extends #23
2014-08-09 14:06:44 +01:00
Dan Hough
1727567661
Deleted unnecessary method
2014-08-08 21:35:31 +01:00
Dan Hough
41c16b5906
Added url require
2014-08-08 21:35:10 +01:00
Dan Hough
3863e30aab
Fixed #25 . This was a unix/windows path error. TLDR: / != \ Upped to V1.8.2
...
Conflicts:
lib/server.js
2014-08-08 21:33:59 +01:00
Dan Hough
6eaf966853
Moved fluent tests to their own file and finished all the required modify stuff for #23
2014-08-08 21:23:53 +01:00
Dan Hough
42b92e2f24
#23 Useful error messages when trying to do extra complex stuff covered by #26
2014-08-08 20:02:26 +01:00
Dan Hough
3d01dc2557
Middle of query
2014-08-08 19:08:24 +01:00
Dan Hough
bc60a81b82
#23 Can now modify response headers
2014-08-08 18:51:49 +01:00
Dan Hough
231b7faba7
#23 Proper delay support. Works for non-existant routes before they've been created
2014-08-08 18:35:29 +01:00
Dan Hough
9f09fffeef
#23 Can now add delays
2014-08-08 18:23:17 +01:00
Dan Hough
5b5105248b
#23 Modify now has its own method in the fluent interface.
2014-08-08 18:07:06 +01:00
Dan Hough
ddf40ca31b
So confused
2014-08-07 22:26:41 +01:00
Dan Hough
bea658c172
Will now modify body after response is sent!!
2014-08-07 12:22:15 +01:00
Dan Hough
c6250f6b25
Can now modify a route, but only before it is called. Should only happen once call has happened
2014-08-07 12:05:46 +01:00
Dan Hough
839d2c948f
Added a note.
2014-08-07 09:15:36 +01:00
Dan Hough
e5e9a941d9
Made good progress with modifies. Need to merge, not replace
2014-08-06 23:08:00 +01:00
Dan Hough
7b0e9fcead
Successfully rearchitected. Need to do some comment adjustment now
2014-08-06 22:56:10 +01:00
Dan Hough
6745fb7306
Added Route class to separate stuff more cleanly
2014-08-06 17:43:35 +01:00
Dan Hough
5cef1a6c60
Ah everything is broken. Turned routes into classes
2014-07-17 17:53:40 +01:00
Dan Hough
f267882a3c
Almost there. Need to store routes as standalone things with state rather than as simple objects, and return them from the createroute method.
2014-07-10 19:51:14 +01:00
Dan Hough
87adbe9d09
Fixed #24 can now use other fluent methods after responseHeaders
2014-07-03 17:42:12 +01:00
Dan Hough
219e5c935e
Can now create partially-matched query string request endpoints. Closes #20
2014-06-20 11:14:57 +01:00
Dan Hough
54362db964
Fixed a bug where delay wasn't working in the fluent interface. Bumped v to 1.7.2
2014-06-20 11:13:21 +01:00
Dan Hough
9d3732b6fb
v1.7.1 Made root path work by more traditional methods
2014-06-06 10:13:39 +01:00
Dan Hough
a46d137d80
Added API Root ability. Name up for debate if anybody has an opinion.
2014-06-06 09:25:16 +01:00
Dan Hough
a44fdc0b28
Basic support for fluent command line interface for #5
2014-05-24 11:31:06 +01:00
Bryce Gibson
9339f531f7
Add a callback argument to Interfake.listen
2014-05-07 18:35:58 +10:00
Dan Hough
f5f9b3c696
v1.6.1: Merged with @sebs's fork. Fixed small undefined bug that has existed since day 0
2014-04-24 21:07:03 +02:00
Sebastian Schürmann
e072622bd0
Using the bodyparser not just for json
...
- I dont know why ;)
- I didnt look
- Whatever ;)
2014-04-24 18:14:31 +02:00
Sebastian Schürmann
04d8fa77c4
Everything works except the posting of json
...
- Updated Express to 4x via *
- refactored usage of connect middleware according to the migration guide
2014-04-24 18:08:51 +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
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
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
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
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
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
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
364afa9b06
Added an example of how to use this for testing SPAs
2014-03-16 22:05:26 +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
afb532fd4d
Now uses .creates and not .then. Not sure it will stay this way.
2014-03-16 11:10:01 +01:00