> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# assertInboundContract()

> Function exported by @botmesh/core/testing.

```ts theme={null}
function assertInboundContract(events, options?): void;
```

Defined in: [testing/inboundContract.ts:166](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/inboundContract.ts#L166)

Throw an [InboundContractError](https://botmesh.afaya.com.co/api/core/testing/classes/InboundContractError.md) listing every violation unless the events satisfy
the inbound shape contract (see [checkInboundContract](https://botmesh.afaya.com.co/api/core/testing/functions/checkInboundContract.md)).

## Parameters

| Parameter | Type |
| - | - |
| `events` | readonly [`InboundContractInput`](https://botmesh.afaya.com.co/api/core/testing/type-aliases/InboundContractInput)\[] |
| `options?` | [`InboundContractOptions`](https://botmesh.afaya.com.co/api/core/testing/interfaces/InboundContractOptions) |

## Returns

`void`

## Throws


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.