Commits
Kristof De Langhe authored and Art Lowel committed 91ca5af1d42
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 | } |