| ... | @@ -11,17 +11,10 @@ import { | ... | @@ -11,17 +11,10 @@ import { |
| 11 | RelayPublicDomainLabelTooLongError, | 11 | RelayPublicDomainLabelTooLongError, |
| 12 | relayPublicDomainForStage, | 12 | relayPublicDomainForStage, |
| 13 | relayResourceNameForStage, | 13 | relayResourceNameForStage, |
| 14 | relayStageSlug, | | |
| 15 | } from "./deploymentConfig.ts"; | 14 | } from "./deploymentConfig.ts"; |
| 16 | | 15 | |
| 17 | const isRelayPublicDomainLabelTooLongError = Schema.is(RelayPublicDomainLabelTooLongError); | 16 | const isRelayPublicDomainLabelTooLongError = Schema.is(RelayPublicDomainLabelTooLongError); |
| 18 | | 17 | |
| 19 | describe("relayStageSlug", () => { | | |
| 20 | it("matches Alchemy physical-name sanitization for default developer stages", () => { | | |
| 21 | expect(relayStageSlug("dev_julius")).toBe("dev-julius"); | | |
| 22 | }); | | |
| 23 | }); | | |
| 24 | | | |
| 25 | describe("relayPublicDomainForStage", () => { | 18 | describe("relayPublicDomainForStage", () => { |
| 26 | it("uses the canonical relay hostname for production", () => { | 19 | it("uses the canonical relay hostname for production", () => { |
| 27 | expect(relayPublicDomainForStage("prod", ".example.com.")).toBe("relay.example.com"); | 20 | expect(relayPublicDomainForStage("prod", ".example.com.")).toBe("relay.example.com"); |