Skip to content

TST-CRM-REG-065Geographic matching and deciding input

Markdown

TST-CRM-REG-065

Geographic matching and deciding input

Markdown
  • DocumentDraft
  • ImplementationImplemented
  • ConformanceNot verified

Product areaCRMModuleRegionsRevision1

Read atservices-crm a8d1364f

Isolation
In-memory values and test-owned component state.
Kind
unit
Repository
services-crm
Environment
mock
Implementation state
implemented
Latest result
not-run
Conformance
not-verified

Test Files

Implements

ATS-CRM-REG-006-01 ATS-CRM-REG-006-02 ATS-CRM-REG-006-04 ATS-CRM-REG-006-06 ATS-CRM-REG-006-07 ATS-CRM-REG-006-08 ATS-CRM-REG-006-09 ATS-CRM-REG-006-11

Assertions

IdStatementProvenance
services-crm:modules/regions/tests/unit/region-matching.spec.js#region_for_address › answers the first rule that matches when several would
services-crm:modules/regions/tests/unit/region-matching.spec.js#region_for_address › tries the rest-of-the-world rule last wherever it sits in the order
services-crm:modules/regions/tests/unit/region-matching.spec.js#region_for_address › answers the rest-of-the-world region when nothing else matches
services-crm:modules/regions/tests/unit/region-matching.spec.js#region_for_address › answers the last rest-of-the-world rule when the tenant has several
services-crm:modules/regions/tests/unit/region-matching.spec.js#region_for_address › compares postal codes as strings, so a ZIP+4 code inside the range matches
services-crm:modules/regions/tests/unit/region-matching.spec.js#region_for_address › does not match a postal code just past the end of the range
services-crm:modules/regions/tests/unit/region-matching.spec.js#region_for_address › matches states exactly, so a lower-case state is not the upper-case one
services-crm:modules/regions/tests/unit/region-matching.spec.js#region_for_address › matches the country whatever the case of the address or the rule
services-crm:modules/regions/tests/unit/region-matching.spec.js#region_for_address › counts an address with no country as US
services-crm:modules/regions/tests/unit/region-matching.spec.js#region_for_address › answers no region when nothing matches and there is no rest-of-the-world rule
services-crm:modules/regions/tests/unit/region-matching.spec.js#region_for_address › answers no region for no address even with a rest-of-the-world rule
services-crm:modules/regions/tests/unit/region-matching.spec.js#region_for_address › answers no region for an address whose every field is empty

The Markdown files under specs/ in rhythmsoftware/rhythm-v2-docs are the canonical source of truth. This reader is a generated, read-only projection of them.