Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
pull_request:

jobs:
build:
name: Build
Expand All @@ -12,7 +12,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20.10.0
cache: 'npm'
cache: "npm"
- run: npm install
- run: npm run build
test:
Expand All @@ -23,7 +23,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20.10.0
cache: 'npm'
cache: "npm"
- run: npm install
- run: npm run test
lint:
Expand All @@ -34,7 +34,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20.10.0
cache: 'npm'
cache: "npm"
- run: npm install
- run: npm run lint
audit:
Expand All @@ -45,5 +45,5 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: current
cache: 'npm'
- run: npm audit
cache: "npm"
- run: npm audit --omit dev
15 changes: 13 additions & 2 deletions Address/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ describe("Address", () => {
zipCode: "",
city: "",
}
const genericWithRegion: isoly.Address.Generic = {
countryCode: "US",
street: "525 Market St",
zipCode: "94105",
city: "San Francisco",
state: "CA",
county: "San Francisco",
}
it.each([
[defaultAddress, true],
[britishAddress, true],
Expand All @@ -37,8 +45,11 @@ describe("Address", () => {
[badAddress, false],
])("British %s", (address, expected) => expect(isoly.Address.GB.is(address)).toBe(expected))
it.each([
[defaultAddress, false],
[britishAddress, false],
[swedishAddress, true],
[badAddress, false],
])("Swedish %s", (address, expected) => expect(isoly.Address.SE.is(address)).toBe(expected))
it.each([
[genericWithRegion, true],
[britishAddress, true],
])("Generic with region %s", (address, expected) => expect(isoly.Address.Generic.is(address)).toBe(expected))
})
Loading