Browse Source
Merge pull request #11605 from abpframework/fix/lazy-stylhandler-test
replace languageChange$ property to currentLang$ property
pull/11606/head
Bunyamin Coskuner
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
npm/ng-packs/packages/theme-basic/src/lib/tests/lazy-style.handler.spec.ts
|
|
|
@ -4,7 +4,7 @@ import { createServiceFactory, SpectatorService } from '@ngneat/spectator/jest'; |
|
|
|
import { of } from 'rxjs'; |
|
|
|
import { BOOTSTRAP, createLazyStyleHref, LazyStyleHandler } from '../handlers'; |
|
|
|
|
|
|
|
const languageChange$ = of({ payload: 'en' }); |
|
|
|
const currentLang$ = of({ payload: 'en' }); |
|
|
|
|
|
|
|
describe('LazyStyleHandler', () => { |
|
|
|
let spectator: SpectatorService<LazyStyleHandler>; |
|
|
|
@ -17,7 +17,7 @@ describe('LazyStyleHandler', () => { |
|
|
|
DocumentDirHandlerService, |
|
|
|
{ |
|
|
|
provide: LocalizationService, |
|
|
|
useValue: { currentLang: 'en', languageChange$ }, |
|
|
|
useValue: { currentLang: 'en', currentLang$ }, |
|
|
|
}, |
|
|
|
], |
|
|
|
}); |
|
|
|
|