simple-fake-server-server-client
v2.1.1
Published
This is a the client library to use with `simple-fake-server-server`.
Downloads
9
Readme
simple-fake-server-server-client
This is a the client library to use with simple-fake-server-server
.
Example
import Server from 'simple-fake-server-server-client';
const server = new Server();
// register a mock
const callId = await server.mock({url: '/isAlive', response: true});
// get all calls
const calls = await server.getCalls();
// get a specific call
const {hasBeenMade} = await server.getCall(callId);
// clear all mocks
await sever.clear();
Seriously? simple-fake-server-server-client?
Yes, seriously