UNPKG

@n1k1t/mock-server

Version:

The ultimate toolkit to intercept, transform, and simulate HTTP/WS traffic with type-safe expectations

12 lines 573 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const models_1 = require("../models"); exports.default = models_1.EndpointFactory .build() .http({ method: 'GET', path: '/expectations/compact' }) .io({ path: 'expectations:compact:get-list' }) .compile(({ reply, server }) => reply.ok(server.providers .extract() .reduce((acc, provider) => acc.concat([...provider.storages.expectations.values()]), []) .map((expectation) => expectation.toCompact()))); //# sourceMappingURL=expectations.compact.get-list.endpoint.js.map