Skip to content

Commit 529e043

Browse files
committed
Clean up
1 parent 44ef920 commit 529e043

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

test/parse.unit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const INVALID_POSTCODE = Object.freeze({
1414
unit: null,
1515
});
1616

17-
describe("Postcode.parse", () => {
17+
describe("parse", () => {
1818
describe("invalid postcode", () => {
1919
it("returns an invalid postcode object", () => {
2020
const {
@@ -69,7 +69,7 @@ describe("Postcode.parse", () => {
6969
});
7070
});
7171

72-
describe("Postcode.validOutcode", () => {
72+
describe("validOutcode", () => {
7373
it("should return true for valid outcodes", async () => {
7474
const { tests } = await loadFixtures("outcodes.json");
7575
tests.forEach(({ expected }) =>

test/statics.unit.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const testMethod = (options: TestMethodOptions): void => {
1919
});
2020
};
2121

22-
describe("Postcode.isValid", async () => {
22+
describe("isValid", async () => {
2323
it("should return true for postcodes that look correct", async () => {
2424
const { tests } = await loadFixtures("validation.json");
2525
tests.forEach(({ base, expected }) => {
@@ -28,7 +28,7 @@ describe("Postcode.isValid", async () => {
2828
});
2929
});
3030

31-
describe("Postcode.toNormalised", () => {
31+
describe("toNormalised", () => {
3232
it("should correctly normalise postcodes", async () => {
3333
const { tests } = await loadFixtures("normalisation.json");
3434
testMethod({ method: Postcode.toNormalised, tests });
@@ -39,7 +39,7 @@ describe("Postcode.toNormalised", () => {
3939
});
4040
});
4141

42-
describe("Postcode.toIncode", () => {
42+
describe("toIncode", () => {
4343
it("should correctly parse incodes", async () => {
4444
const { tests } = await loadFixtures("incodes.json");
4545
testMethod({ method: Postcode.toIncode, tests });
@@ -50,7 +50,7 @@ describe("Postcode.toIncode", () => {
5050
});
5151
});
5252

53-
describe("Postcode.toOutcode", () => {
53+
describe("toOutcode", () => {
5454
it("should correctly parse outcodes", async () => {
5555
const { tests } = await loadFixtures("outcodes.json");
5656
testMethod({ method: Postcode.toOutcode, tests });
@@ -61,7 +61,7 @@ describe("Postcode.toOutcode", () => {
6161
});
6262
});
6363

64-
describe("Postcode.toArea", () => {
64+
describe("toArea", () => {
6565
it("should correctly parse areas", async () => {
6666
const { tests } = await loadFixtures("areas.json");
6767
testMethod({ method: Postcode.toArea, tests });
@@ -72,7 +72,7 @@ describe("Postcode.toArea", () => {
7272
});
7373
});
7474

75-
describe("Postcode.toDistrict", () => {
75+
describe("toDistrict", () => {
7676
it("should correctly parse districts", async () => {
7777
const { tests } = await loadFixtures("districts.json");
7878
testMethod({ method: Postcode.toDistrict, tests });
@@ -83,7 +83,7 @@ describe("Postcode.toDistrict", () => {
8383
});
8484
});
8585

86-
describe("Postcode.toSubDistrict", () => {
86+
describe("toSubDistrict", () => {
8787
it("should correctly parse sub-districts", async () => {
8888
const { tests } = await loadFixtures("sub-districts.json");
8989
testMethod({ method: Postcode.toSubDistrict, tests });
@@ -94,7 +94,7 @@ describe("Postcode.toSubDistrict", () => {
9494
});
9595
});
9696

97-
describe("Postcode.toSector", () => {
97+
describe("toSector", () => {
9898
it("should correctly parse sectors", async () => {
9999
const { tests } = await loadFixtures("sectors.json");
100100
testMethod({ method: Postcode.toSector, tests });
@@ -105,7 +105,7 @@ describe("Postcode.toSector", () => {
105105
});
106106
});
107107

108-
describe("Postcode.toUnit", () => {
108+
describe("toUnit", () => {
109109
it("should correctly parse units", async () => {
110110
const { tests } = await loadFixtures("units.json");
111111
testMethod({ method: Postcode.toUnit, tests });

0 commit comments

Comments
 (0)