This commit is contained in:
parent
9b3f42175d
commit
987ea74375
@ -119,7 +119,9 @@ describe("STANOX Validation Tests", () => {
|
|||||||
expect(() => validateStanox(false)).toThrow(ValidationError);
|
expect(() => validateStanox(false)).toThrow(ValidationError);
|
||||||
expect(() => validateStanox("3543ab")).toThrow(ValidationError);
|
expect(() => validateStanox("3543ab")).toThrow(ValidationError);
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
describe("Station Validation Tests", () => {
|
||||||
test("Station inputs that should pass validation", () => {
|
test("Station inputs that should pass validation", () => {
|
||||||
expect(validateStation("Heathrow Terminal 5")).toBe(true);
|
expect(validateStation("Heathrow Terminal 5")).toBe(true);
|
||||||
expect(validateStation("King's Cross")).toBe(true);
|
expect(validateStation("King's Cross")).toBe(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user