@@ -177,9 +177,9 @@ describe("promptGatewayConfig", () => {
|
177 | 177 | confirmResult: true, |
178 | 178 | authConfigFactory: ({ mode, token }) => ({ mode, token }), |
179 | 179 | }); |
180 | | -expect(result.config.gateway?.controlUi?.allowedOrigins).toContain( |
| 180 | +expect(result.config.gateway?.controlUi?.allowedOrigins).toEqual([ |
181 | 181 | "https://my-host.tail1234.ts.net", |
182 | | -); |
| 182 | +]); |
183 | 183 | }); |
184 | 184 | |
185 | 185 | it("adds Tailscale origin to controlUi.allowedOrigins when tailscale funnel is enabled", async () => { |
@@ -191,9 +191,9 @@ describe("promptGatewayConfig", () => {
|
191 | 191 | confirmResult: true, |
192 | 192 | authConfigFactory: ({ mode, password }) => ({ mode, password }), |
193 | 193 | }); |
194 | | -expect(result.config.gateway?.controlUi?.allowedOrigins).toContain( |
| 194 | +expect(result.config.gateway?.controlUi?.allowedOrigins).toEqual([ |
195 | 195 | "https://my-host.tail1234.ts.net", |
196 | | -); |
| 196 | +]); |
197 | 197 | }); |
198 | 198 | |
199 | 199 | it("does not add Tailscale origin when getTailnetHostname fails", async () => { |
@@ -237,9 +237,9 @@ describe("promptGatewayConfig", () => {
|
237 | 237 | confirmResult: true, |
238 | 238 | authConfigFactory: ({ mode, token }) => ({ mode, token }), |
239 | 239 | }); |
240 | | -expect(result.config.gateway?.controlUi?.allowedOrigins).toContain( |
| 240 | +expect(result.config.gateway?.controlUi?.allowedOrigins).toEqual([ |
241 | 241 | "https://[fd7a:115c:a1e0::12]", |
242 | | -); |
| 242 | +]); |
243 | 243 | }); |
244 | 244 | |
245 | 245 | it("stores gateway token as SecretRef when token source is ref", async () => { |
|