mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-17 06:18:09 +00:00
Update import-project-dialog.component.spec.ts
This commit is contained in:
@ -46,6 +46,14 @@ export class MockedProjectService {
|
|||||||
list() {
|
list() {
|
||||||
return of(this.projects);
|
return of(this.projects);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getUploadPath(server: Server, uuid: string, project_name: string) {
|
||||||
|
return `http://${server.host}:${server.port}/v2/projects/${uuid}/import?name=${project_name}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
getExportPath(server: Server, project: Project) {
|
||||||
|
return `http://${server.host}:${server.port}/v2/projects/${project.project_id}/export`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
describe('ImportProjectDialogComponent', () => {
|
describe('ImportProjectDialogComponent', () => {
|
||||||
|
Reference in New Issue
Block a user