File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
src/tools/testmanagement-utils Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -116,9 +116,7 @@ export async function createProjectOrFolder(
116
116
) ;
117
117
118
118
if ( ! res . data . data . success ) {
119
- throw new Error (
120
- `Failed to create folder: ${ JSON . stringify ( res . data ) } ` ,
121
- ) ;
119
+ throw new Error ( `Failed to create folder: ${ JSON . stringify ( res . data ) } ` ) ;
122
120
}
123
121
// Folder created successfully
124
122
Original file line number Diff line number Diff line change @@ -143,7 +143,6 @@ export function sanitizeArgs(args: any) {
143
143
return cleaned ;
144
144
}
145
145
146
-
147
146
export async function createTestCase (
148
147
params : TestCaseCreateRequest ,
149
148
) : Promise < TestCaseResponse > {
@@ -192,7 +191,9 @@ export async function createTestCase(
192
191
193
192
// Check if the response indicates success
194
193
if ( ! response . data . data . success ) {
195
- throw new Error ( `Failed to create test case: ${ JSON . stringify ( response . data ) } ` ) ;
194
+ throw new Error (
195
+ `Failed to create test case: ${ JSON . stringify ( response . data ) } ` ,
196
+ ) ;
196
197
}
197
198
198
199
return response . data ;
@@ -209,4 +210,3 @@ export async function createTestCase(
209
210
throw error ;
210
211
}
211
212
}
212
-
You can’t perform that action at this time.
0 commit comments