chainable.test.js — fastify Source File
Architecture documentation for chainable.test.js, a javascript file in the fastify codebase.
Entity Profile
Relationship Graph
Source Code
'use strict'
const { test } = require('node:test')
const fastify = require('..')()
const noop = () => {}
const opts = {
schema: {
response: {
'2xx': {
type: 'object',
properties: {
hello: {
type: 'string'
}
}
}
}
}
}
test('chainable - get', t => {
t.plan(1)
t.assert.strictEqual(fastify.get('/', opts, noop), fastify)
})
test('chainable - post', t => {
t.plan(1)
t.assert.strictEqual(fastify.post('/', opts, noop), fastify)
})
test('chainable - route', t => {
t.plan(1)
t.assert.strictEqual(fastify.route({
method: 'GET',
url: '/other',
schema: opts.schema,
handler: noop
}), fastify)
})
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does chainable.test.js do?
chainable.test.js is a source file in the fastify codebase, written in javascript. It belongs to the CoreKernel domain, LifecycleManager subdomain.
What functions are defined in chainable.test.js?
chainable.test.js defines 1 function(s): noop.
Where is chainable.test.js in the architecture?
chainable.test.js is located at test/chainable.test.js (domain: CoreKernel, subdomain: LifecycleManager, directory: test).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free