MCPcopy Index your code
hub / github.com/fastify/fast-json-stringify / buildTest

Function buildTest

test/defaults.test.js:6–16  ·  view source on GitHub ↗
(schema, toStringify, expected)

Source from the content-addressed store, hash-verified

4const build = require('..')
5
6function buildTest (schema, toStringify, expected) {
7 test(`render a ${schema.title} with default as JSON`, (t) => {
8 t.plan(1)
9
10 const stringify = build(schema)
11
12 const output = stringify(toStringify)
13
14 t.assert.equal(output, JSON.stringify(expected))
15 })
16}
17
18buildTest({
19 title: 'default string',

Callers 1

defaults.test.jsFile · 0.70

Calls 1

buildFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…