MCPcopy Create free account
hub / github.com/avoidwork/tenso / createHypermediaServer

Function createHypermediaServer

benchmarks/hypermedia.js:17–31  ·  view source on GitHub ↗

* Creates a test server with hypermedia enabled

()

Source from the content-addressed store, hash-verified

15 * Creates a test server with hypermedia enabled
16 */
17function createHypermediaServer () { // eslint-disable-line no-unused-vars
18 return tenso({
19 port: 0,
20 silent: true,
21 logging: { enabled: false },
22 auth: { protect: [] },
23 rate: { enabled: false },
24 security: { csrf: false },
25 hypermedia: {
26 enabled: true,
27 header: true
28 },
29 pageSize: 10
30 });
31}
32
33/**
34 * Creates mock request objects for testing

Callers

nothing calls this directly

Calls 1

tensoFunction · 0.90

Tested by

no test coverage detected