We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 910b81f commit f5a8e72Copy full SHA for f5a8e72
api/__tests__/migrate.test.ts
@@ -19,6 +19,7 @@ describe('api/migrate', () => {
19
const mockAppId = 67890;
20
const mockMigrationId = 54321;
21
const mockPlatformVersion = '2025.2';
22
+ const convertedPlatformVersion = 'V2025_2';
23
const mockProjectName = 'Test Project';
24
const mockComponentUids = { 'component-1': 'uid-1', 'component-2': 'uid-2' };
25
@@ -59,7 +60,7 @@ describe('api/migrate', () => {
59
60
expect(http.get).toHaveBeenCalledWith(mockAccountId, {
61
url: 'dfs/migrations/v2/list-apps',
62
params: {
- platformVersion: mockPlatformVersion,
63
+ platformVersion: convertedPlatformVersion,
64
},
65
});
66
expect(result).toEqual(mockResponse);
@@ -82,7 +83,7 @@ describe('api/migrate', () => {
82
83
url: 'dfs/migrations/v2/migrations',
84
data: {
85
applicationId: mockAppId,
- platformVersion: 'V2025_2',
86
87
88
89
api/migrate.ts
@@ -100,7 +100,7 @@ export async function listAppsForMigration(
100
return http.get<ListAppsResponse>(accountId, {
101
url: `${MIGRATIONS_API_PATH_V2}/list-apps`,
102
103
- platformVersion,
+ platformVersion: mapPlatformVersionToEnum(platformVersion),
104
105
106
}
0 commit comments