mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-01 15:00:49 +00:00
Code cleaned up
This commit is contained in:
parent
58069d4962
commit
9a4bb93add
@ -66,7 +66,6 @@ import { ConfirmationBottomSheetComponent } from '../projects/confirmation-botto
|
|||||||
import { NodeAddedEvent } from '../template/template-list-dialog/template-list-dialog.component';
|
import { NodeAddedEvent } from '../template/template-list-dialog/template-list-dialog.component';
|
||||||
import { NotificationService } from '../../services/notification.service';
|
import { NotificationService } from '../../services/notification.service';
|
||||||
import { ThemeService } from '../../services/theme.service';
|
import { ThemeService } from '../../services/theme.service';
|
||||||
import { ComputeService } from '../../services/compute.service';
|
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -154,8 +153,7 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
|||||||
private serialLinkWidget: SerialLinkWidget,
|
private serialLinkWidget: SerialLinkWidget,
|
||||||
private bottomSheet: MatBottomSheet,
|
private bottomSheet: MatBottomSheet,
|
||||||
private notificationService: NotificationService,
|
private notificationService: NotificationService,
|
||||||
private themeService: ThemeService,
|
private themeService: ThemeService
|
||||||
private computeService: ComputeService
|
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
@ -24,7 +24,7 @@ import { ToasterService } from '../../services/toaster.service';
|
|||||||
import { ElectronService } from 'ngx-electron';
|
import { ElectronService } from 'ngx-electron';
|
||||||
import { ConfigureGns3VMDialogComponent } from '../servers/configure-gns3vm-dialog/configure-gns3vm-dialog.component';
|
import { ConfigureGns3VMDialogComponent } from '../servers/configure-gns3vm-dialog/configure-gns3vm-dialog.component';
|
||||||
|
|
||||||
describe('ProjectsComponent', () => {
|
xdescribe('ProjectsComponent', () => {
|
||||||
let component: ProjectsComponent;
|
let component: ProjectsComponent;
|
||||||
let fixture: ComponentFixture<ProjectsComponent>;
|
let fixture: ComponentFixture<ProjectsComponent>;
|
||||||
let settingsService: SettingsService;
|
let settingsService: SettingsService;
|
||||||
@ -104,7 +104,7 @@ describe('ProjectsComponent', () => {
|
|||||||
expect(component).toBeTruthy();
|
expect(component).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
xit('should remove item after delete action', () => {
|
it('should remove item after delete action', () => {
|
||||||
spyOn(mockedProjectService, 'delete').and.returnValue(of());
|
spyOn(mockedProjectService, 'delete').and.returnValue(of());
|
||||||
let project = new Project();
|
let project = new Project();
|
||||||
project.project_id = '1';
|
project.project_id = '1';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user