Skip to main content
zerotal

Documentation


Documentation / @zerotal/testing / index / assertDatabaseMissing

Function: assertDatabaseMissing()

assertDatabaseMissing(table, where): Promise<void>

Defined in: testing/src/assertions.ts:73

Assert that no row in table matches all key/value pairs in where.

Parameters

table

string

where

Record<string, unknown>

Returns

Promise<void>

Example

await assertDatabaseMissing('users', { email: 'deleted@example.com' });