Skip to content

Commit

Permalink
icon service tests
Browse files Browse the repository at this point in the history
  • Loading branch information
clemiller committed Jul 19, 2024
1 parent 0af9af4 commit 5bafa15
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions nav-app/src/app/services/icons.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
// import { TestBed } from '@angular/core/testing';
import { TestBed } from '@angular/core/testing';

// import { Icons, IconsService } from './icons.service';
import { Icons, IconsService } from './icons.service';

// describe('IconsService', () => {
// let service: IconsService;
describe('IconsService', () => {
let service: IconsService;

// beforeEach(() => {
// TestBed.configureTestingModule({});
// service = TestBed.inject(IconsService);
// });
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(IconsService);
});

// it('should be created', () => {
// expect(service).toBeTruthy();
// });
it('should be created', () => {
expect(service).toBeTruthy();
});

// it('should register', () => {
// spyOn(service.matIconRegistry, 'addSvgIcon');
// service.registerIcons();
// expect(service.matIconRegistry.addSvgIcon).toHaveBeenCalledTimes(Object.values(Icons).length);
// });
// });
it('should register', () => {
spyOn(service.matIconRegistry, 'addSvgIcon');
service.registerIcons();
expect(service.matIconRegistry.addSvgIcon).toHaveBeenCalledTimes(Object.values(Icons).length);
});
});

0 comments on commit 5bafa15

Please sign in to comment.