TestCase型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Any case in the package's JSON test files.
インポート
import type { TestCase } from "@johnmorrisdotca/address-plus";
定義
type TestCase = AddressParsingTestCase | AddressFormattingTestCase | AddressValidationTestCase | AddressComparisonTestCase | CleanAddressTestCase | BatchProcessingTestCase;
例
import type { TestCase } from "@johnmorrisdotca/address-plus";
console.log(({ input: "98101", expected: "WA" }).input);
// → "98101"98101出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。