ngx-mock
A mocking utility library that builds on Angular In Memory Web Api library.
Usage
The library allows you to decorate methods in the InMemoryDbService
implementation
using the URL path so you can easily map mock endpoints to mock data.
; implements InMemoryDbService { return ; } { return 'get' reqInfo; } { return 'put' reqInfo; } { return 'post' reqInfo; } { return 'delete' reqInfo; } @ { const index = request; const request = requestsindex; requeststateapproved = true; return body: request ; }