| author | |
| committer | |
| log | b92a8122876458a67cc225f75c1d31bd3e33dc30 |
| tree | 0e35e2f4a69c7b455d3b9fc3d33169d792c25910 |
| parent | 688e5948046e14be7f2bfd48d1c91b7e94d79267 |
| signature | Signed by PGP key B5690EEEBB952194 |
2 files changed, 0 insertions(+), 21 deletions(-)
apps/mobile/src/features/cloud/linkEnvironment.test.ts-11| ... | ... | @@ -11,7 +11,6 @@ import { MobilePreferencesStore } from "../../persistence/mobile-preferences"; |
| 11 | 11 | import { MobileStorage } from "../../persistence/mobile-storage"; |
| 12 | 12 | |
| 13 | 13 | import { |
| 14 | cloudEnvironmentsPendingStatus, | |
| 15 | 14 | linkEnvironmentToCloud, |
| 16 | 15 | linkEnvironmentToCloudWithPreference, |
| 17 | 16 | connectCloudEnvironment, |
| ... | ... | @@ -194,16 +193,6 @@ describe("mobile cloud link environment client", () => { |
| 194 | 193 | loadPreferences.mockClear(); |
| 195 | 194 | }); |
| 196 | 195 | |
| 197 | it("makes linked environments visible while their status is still loading", () => { | |
| 198 | expect(cloudEnvironmentsPendingStatus([listedEnvironment("env-1")])).toMatchObject([ | |
| 199 | { | |
| 200 | environment: { environmentId: "env-1", label: "Desktop" }, | |
| 201 | status: null, | |
| 202 | statusError: "Checking status...", | |
| 203 | }, | |
| 204 | ]); | |
| 205 | }); | |
| 206 | ||
| 207 | 196 | it.effect("decodes relay environment list responses before returning records", () => |
| 208 | 197 | Effect.gen(function* () { |
| 209 | 198 | vi.stubGlobal( |
apps/mobile/src/features/cloud/linkEnvironment.ts-10| ... | ... | @@ -397,16 +397,6 @@ export function getCloudEnvironmentStatus(input: { |
| 397 | 397 | }); |
| 398 | 398 | } |
| 399 | 399 | |
| 400 | export function cloudEnvironmentsPendingStatus( | |
| 401 | environments: ReadonlyArray<RelayClientEnvironmentRecord>, | |
| 402 | ): ReadonlyArray<CloudEnvironmentRecordWithStatus> { | |
| 403 | return environments.map((environment) => ({ | |
| 404 | environment, | |
| 405 | status: null, | |
| 406 | statusError: "Checking status...", | |
| 407 | })); | |
| 408 | } | |
| 409 | ||
| 410 | 400 | export function loadCloudEnvironmentStatuses(input: { |
| 411 | 401 | readonly clerkToken: string; |
| 412 | 402 | readonly environments: ReadonlyArray<RelayClientEnvironmentRecord>; |