> ## 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.

# assertCapabilityContract()

> Function exported by @botmesh/core/testing.

```ts theme={null}
function assertCapabilityContract(provider): void;
```

Defined in: [testing/capabilityContract.ts:105](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/capabilityContract.ts#L105)

Throw a [CapabilityContractError](https://botmesh.afaya.com.co/api/core/testing/classes/CapabilityContractError.md) unless the provider satisfies the capability
contract (see [checkCapabilityContract](https://botmesh.afaya.com.co/api/core/testing/functions/checkCapabilityContract.md)).

## Parameters

| Parameter | Type |
| - | - |
| `provider` | `Pick`\<[`IProvider`](https://botmesh.afaya.com.co/api/core/interfaces/IProvider)\<`unknown`>, `"capabilities"`> & `Partial`\<[`IProvider`](https://botmesh.afaya.com.co/api/core/interfaces/IProvider)\<`unknown`>> |

## Returns

`void`

## Throws


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