Skip to content

Commit 4d52e18

Browse files
committed
Add toSubDistrict tests
1 parent 6e552e3 commit 4d52e18

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

test/statics.unit.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ describe("Postcode.toDistrict", () => {
8383
});
8484
});
8585

86-
// describe("Postcode.toSubDistrict", () => {
87-
// it("should correctly parse sub-districts", async () => {
88-
// const { tests } = await loadFixtures("sub-districts.json");
89-
// testMethod({ method: Postcode.toSubDistrict, tests });
90-
// });
91-
92-
// it("should return undefined if invalid postcode", () => {
93-
// assert.isNull(Postcode.toSubDistrict("Definitely bogus"));
94-
// });
95-
// });
86+
describe("Postcode.toSubDistrict", () => {
87+
it("should correctly parse sub-districts", async () => {
88+
const { tests } = await loadFixtures("sub-districts.json");
89+
testMethod({ method: Postcode.toSubDistrict, tests });
90+
});
91+
92+
it("should return undefined if invalid postcode", () => {
93+
assert.isNull(Postcode.toSubDistrict("Definitely bogus"));
94+
});
95+
});
9696

9797
describe("Postcode.toSector", () => {
9898
it("should correctly parse sectors", async () => {

0 commit comments

Comments
 (0)