import { provideZonelessChangeDetection } from '@angular/core'; import { TestBed } from '@angular/core/testing'; import { provideAnimations } from '@angular/platform-browser/animations'; import { provideHttpClient } from '@angular/common/http'; import { provideRouter } from '@angular/router'; import { TOAST_CONFIG, DefaultGlobalConfig } from 'ngx-toastr'; import { ThemeService } from './theme.service'; describe('ThemeService', () => { let service: ThemeService; beforeEach(() => { TestBed.configureTestingModule({ providers: [ provideZonelessChangeDetection(), provideHttpClient(), provideRouter([]), provideAnimations(), { provide: TOAST_CONFIG, useValue: { default: DefaultGlobalConfig, config: {} } }, ], }); service = TestBed.inject(ThemeService); }); it('should be created', () => { expect(service).toBeTruthy(); }); });