MCPcopy Create free account
hub / github.com/JS-DevTools/ono / testOnoToJSON

Function testOnoToJSON

test/specs/typescript.spec.ts:163–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161
162
163export function testOnoToJSON() {
164 let pojo = Ono.toJSON(err);
165
166 // ErrorPOJO props
167 pojo.name = "string";
168 pojo.message = "string";
169 pojo.stack = "string";
170
171 let pojo2 = Ono.toJSON(errPOJO);
172
173 // ErrorPOJO props
174 pojo2.name = "string";
175 pojo2.message = "string";
176 pojo2.stack = "string";
177}
178
179
180export function testOnoSignatures() {

Callers

nothing calls this directly

Calls 1

toJSONMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…