Skip to main content

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​

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

function runLocationProviderContract(name: string, create: () => LocationProviderSubject): void;

Parameters​

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

Returns​

void

See also​

Source: packages/core/src/contracts/locationProvider.contract.ts:59