Commits

Kristof De Langhe authored and Art Lowel committed 91ca5af1d42
additional theme support tests
No tags

src/app/shared/mocks/theme-service.mock.ts

Modified
1 1 import { ThemeService } from '../theme-support/theme.service';
2 +import { of as observableOf } from 'rxjs';
2 3
3 -export function getMockThemeService(): ThemeService {
4 +export function getMockThemeService(themeName = 'base'): ThemeService {
4 5 return jasmine.createSpyObj('themeService', {
5 - getThemeName: 'base'
6 + getThemeName: themeName,
7 + getThemeName$: observableOf(themeName)
6 8 });
7 9 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut