Webpack require dynamic fixture example
|
- |
should load a fixture without pattern
|
- |
should load a fixture with pattern
|
- |
Dynamic fixture from database
|
- |
should fetch all rows from a model
|
- |
should fetch once record from a model
|
- |
should create a new record
|
- |
Errors management
|
- |
Server warnings
|
- |
should warn on error by default
|
- |
should be set to not warn on error
|
- |
Server errors
|
- |
should respond with 500 error when process failing
|
- |
should be set to throw on error
|
- |
Fixtures test suite
|
- |
Fixture configuration
|
- |
should create a fixture
|
- |
Fixture requests processing
|
- |
should process fixture lifecyle
|
- |
should alter response from before response callback
|
- |
should use a preset if one is thrown in fixture lifecycle
|
- |
should use a Response instance if one is thrown in fixture lifecycle
|
- |
should use a response object descriptor if one is thrown in fixture lifecycle
|
- |
should throw on Error
|
- |
should return a 500 error for Error throws
|
- |
should throw by default for other throws
|
- |
should return a 500 error for other throws
|
- |
should throw when asked to
|
- |
should throw when trying to go to fallback from a request matcher
|
- |
Fixture patterns
|
ResponseConfigurator#pattern |
should handle patterns
|
- |
Extended request test suite
|
- |
should create Request from fetch params and expose parsed request properties
|
- |
should extend existing Request Object and expose parsed request properties
|
- |
should return an FMF request as clone
|
- |
History test suite
|
- |
should get last request and response
|
- |
should get nth request
|
- |
should have cloned response before body parsing
|
- |
should return all history, all requests or all responses
|
- |
should reset history
|
- |
Log and verbose tests
|
- |
should log request/response/error
|
- |
should log and verbose request/response/error
|
- |
Presets test suite
|
- |
should create a blank preset
|
- |
should create a configured preset
|
- |
should update preset
|
- |
should configure preset with BDD style
|
- |
should delete preset
|
- |
should throw if name is not provided
|
- |
should throw if params are not an object
|
- |
should add presets app-wide (manual way)
|
- |
should register a preset globally
|
- |
should unregister global presets
|
- |
Processors test suite
|
- |
Base processor evaluation methods
|
- |
Equality
|
- |
should evaluate equality of strings
|
- |
should evaluate equality of numbers
|
- |
should evaluate equality of booleans
|
- |
should execute reg exp
|
- |
should execute callback
|
- |
should execute async callback
|
- |
Request configurator test suite
|
- |
should create a matcher
|
- |
should throw on unsupported FMFRequest property
|
- |
should return a processor
|
- |
should process equal
|
- |
should process header
|
- |
should provide the right processor
|
- |
should throw is equal argument is not and object when called on matcher
|
- |
should throw is with invalid key when called on matcher
|
- |
should chain multiple conditions on the same matcher without on keyword
|
- |
should chain multiple on to generate multiple matching requests
|
- |
Request processing test suite
|
- |
should throw if no fixtures defined
|
- |
should throw if no matching fixtures found
|
- |
Should reset between calls
|
- |
should return response build from fixture
|
- |
should return ordered responses
|
- |
should parse body of request for matching
|
- |
should delay response
|
- |
should negate request matching
|
- |
should warn when multiple requests are matching
|
- |
Respond test suite
|
- |
should create a blank fixture and register it
|
- |
should set a default response
|
- |
should update default response
|
- |
should change default response again
|
- |
should register ordered responses with global call count
|
- |
should register ordered responses with own call count
|
- |
Response configurator test suite
|
ResponseConfigurator |
should set/unset a response from object
|
ResponseConfigurator#set |
should throw with set if argument is not an object
|
- |
should throw with set if key is not allowed
|
- |
should throw if headers are not valid
|
- |
should throw if before and after are not callbacks
|
- |
should set individual headers
|
ResponseConfigurator#header |
Server control test suite
|
- |
should construct a server
|
- |
should start, reset and stop server
|
- |
should expose stub when running and throw when not running
|
- |
should import fixtures
|
- |
should manage import errors
|
- |