runMessageCatalogueContract
Runs the shared behavioural suite for a MessageCatalogue. Proves a
key resolves with its parameters substituted, a missing key falls back to
the English value and warns exactly once per instance, plural picks the
right English form for 0, 1 and many, and list matches what
Intl.ListFormat itself produces.
This is a function exported by @mapcairn/core/contracts, checked against version 0.2.0.
Signature
import { runMessageCatalogueContract } from "@mapcairn/core/contracts";
function runMessageCatalogueContract(name: string, fixture: MessageCatalogueFixture): void;
Parameters
name(string)fixture(MessageCatalogueFixture)
Returns
void
See also
Source: packages/core/src/contracts/messageCatalogue.contract.ts:49