[**Documentation**](../../../README)

***

[Documentation](../../../README) / [zerotal](../../README) / [testing](../README) / assertDatabaseMissing

# Function: assertDatabaseMissing()

> **assertDatabaseMissing**(`table`, `where`): `Promise`\<`void`\>

Defined in: [packages/testing/src/assertions.ts:73](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/testing/src/assertions.ts#L73)

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

## Parameters

### table

`string`

### where

`Record`\<`string`, `unknown`\>

## Returns

`Promise`\<`void`\>

## Example

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