How to use the @delon/mock.MockStatusError function in @delon/mock

To help you get started, we’ve selected a few @delon/mock examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github personball / abplus-zero-template / angular / _mock / _apis.ts View on Github external
    '/api/403': () => { throw new MockStatusError(403); },
    '/api/404': () => { throw new MockStatusError(404); },
github personball / abplus-zero-template / angular / _mock / _apis.ts View on Github external
    '/api/401': () => { throw new MockStatusError(401); },
    '/api/403': () => { throw new MockStatusError(403); },
github ng-alain / delon / _mock / user.ts View on Github external
'/500': () => {
    throw new MockStatusError(500);
  },
  '/404': () => {
github ng-alain / delon / _mock / user.ts View on Github external
'/404': () => {
    throw new MockStatusError(404);
  },
  '/user/:id': (req: MockRequest) => {
github personball / abplus-zero-template / angular / _mock / _apis.ts View on Github external
    '/api/500': () => { throw new MockStatusError(500); }
};
github personball / abplus-zero-template / angular / _mock / _apis.ts View on Github external
    '/api/404': () => { throw new MockStatusError(404); },
    '/api/500': () => { throw new MockStatusError(500); }

@delon/mock

Generate random data, intercept http requests.

MIT
Latest version published 2 months ago

Package Health Score

79 / 100
Full package analysis