UNPKG

@adonisjs/lucid

Version:

SQL ORM built on top of Active Record pattern

20 lines (19 loc) 556 B
/* * @adonisjs/lucid * * (c) AdonisJS * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { TestContext } from '@japa/runner/core'; import { DatabaseTestAssertions } from '../../test_utils/assertions.js'; /** * Japa plugin that adds database assertion methods * to the test context via `({ db }) => { ... }`. */ export function dbAssertions(app) { return function () { TestContext.getter('db', () => new DatabaseTestAssertions(app), true); }; }