# runLayerCatalogueContract

Runs the shared behavioural suite for a `LayerCatalogue`. Every test
calls `create` for a fresh subject. Run it for a catalogue with no layers
and for one with several.

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

## Signature

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

## Parameters

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

## Returns

`void`

## See also

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

Source: [packages/core/src/contracts/layerCatalogue.contract.ts:42](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/contracts/layerCatalogue.contract.ts#L42)
