# runSearchProviderContract

Runs the shared behavioural suite for a `SearchProvider`. Every test
calls `create` for a fresh subject.

This is a function exported by `@mapcairn/core/contracts`, checked against version 0.2.0.

## Signature

```ts
import { runSearchProviderContract } from "@mapcairn/core/contracts";
 
function runSearchProviderContract(name: string, create: () => SearchProviderSubject): void;
```

## Parameters

- `name` (`string`)
- `create` (`() => SearchProviderSubject`)

## Returns

`void`

## See also

- [`SearchProviderSubject`](https://docs.mapcairn.com/api/core/contracts/SearchProviderSubject.md)

Source: [packages/core/src/contracts/searchProvider.contract.ts:66](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/contracts/searchProvider.contract.ts#L66)
