Skip to main content

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​

import { runLayerCatalogueContract } from "@mapcairn/core/contracts";

function runLayerCatalogueContract(name: string, create: () => LayerCatalogueSubject): void;

Parameters​

  • name (string)
  • create (() => LayerCatalogueSubject)

Returns​

void

See also​

Source: packages/core/src/contracts/layerCatalogue.contract.ts:42