mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
test: Add credential helper and ndv helper (#18636)
This commit is contained in:
@@ -27,4 +27,19 @@ export class ProjectApiHelper {
|
||||
const result = await response.json();
|
||||
return result.data ?? result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a project
|
||||
* @param projectId The ID of the project to delete
|
||||
* @returns True if deletion was successful
|
||||
*/
|
||||
async deleteProject(projectId: string): Promise<boolean> {
|
||||
const response = await this.api.request.delete(`/rest/projects/${projectId}`);
|
||||
|
||||
if (!response.ok()) {
|
||||
throw new TestError(`Failed to delete project: ${await response.text()}`);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user