MCPcopy
hub / github.com/hapijs/hapi / action

Function action

test/validation.js:1040–1044  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1038
1039 let count = 0;
1040 const action = async function () {
1041
1042 const res = await server.inject('/');
1043 count += (res.statusCode === 500 ? 1 : 0);
1044 };
1045
1046 for (let i = 0; i < 500; ++i) {
1047 await action();

Callers 1

validation.jsFile · 0.85

Calls 1

injectMethod · 0.80

Tested by

no test coverage detected