trifid-core
Version:
Trifid Core
19 lines • 579 B
TypeScript
/**
* This file contains utility functions for tests.
* This can be used to test any other plugin.
*/
import type { FastifyInstance } from 'fastify';
/**
* Get an endpoint of the Fastify Instance.
*
* @param server Server.
*/
export declare const getListenerURL: (server: FastifyInstance) => string;
/**
* Assert that a promise is rejected.
*
* @param promise The promise to assert.
* @returns A promise that resolves when the assertion is done.
*/
export declare const assertRejection: (promise: Promise<unknown>) => Promise<void>;
//# sourceMappingURL=test.d.ts.map