# runLocationProviderContract

Runs the shared behavioural suite for a `LocationProvider`. Every
test calls `create` for a fresh subject. The watch tests run only when the
provider reports `supportsWatch`, so run the suite once for each case.

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

## Signature

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

## Parameters

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

## Returns

`void`

## See also

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

Source: [packages/core/src/contracts/locationProvider.contract.ts:59](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/contracts/locationProvider.contract.ts#L59)
