Reference · Parsing, formatting and shared types
TestCasetype
Any case in the package's JSON test files.
Import it
import type { TestCase } from "@johnmorrisdotca/address-plus";
Definition
type TestCase = AddressParsingTestCase | AddressFormattingTestCase | AddressValidationTestCase | AddressComparisonTestCase | CleanAddressTestCase | BatchProcessingTestCase;
Examples
import type { TestCase } from "@johnmorrisdotca/address-plus";
console.log(({ input: "98101", expected: "WA" }).input);
// → "98101"98101What it prints (run when this page was built)