From 6f2f5be40bf5064cf0956a31c2c3e8f79d956851 Mon Sep 17 00:00:00 2001 From: markuczy Date: Mon, 15 Jul 2024 15:36:51 +0200 Subject: [PATCH] fix: test fix --- .../src/lib/utils/caching-translate-loader.utils.spec.ts | 1 + .../src/lib/utils/create-translate-loader.utils.spec.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/libs/angular-accelerator/src/lib/utils/caching-translate-loader.utils.spec.ts b/libs/angular-accelerator/src/lib/utils/caching-translate-loader.utils.spec.ts index 32663f28..3c653f72 100644 --- a/libs/angular-accelerator/src/lib/utils/caching-translate-loader.utils.spec.ts +++ b/libs/angular-accelerator/src/lib/utils/caching-translate-loader.utils.spec.ts @@ -37,6 +37,7 @@ describe('CachingTranslateLoader', () => { }).compileComponents() http = TestBed.inject(HttpClient) translationCache = TestBed.inject(TranslationCacheService) + window['onecxTranslations'] = {} }) it('should get translations', (done) => { diff --git a/libs/angular-accelerator/src/lib/utils/create-translate-loader.utils.spec.ts b/libs/angular-accelerator/src/lib/utils/create-translate-loader.utils.spec.ts index 7f8f2f2b..23042525 100644 --- a/libs/angular-accelerator/src/lib/utils/create-translate-loader.utils.spec.ts +++ b/libs/angular-accelerator/src/lib/utils/create-translate-loader.utils.spec.ts @@ -49,6 +49,7 @@ describe('CreateTranslateLoader', () => { }).compileComponents() environmentInjector = TestBed.inject(EnvironmentInjector) translationCacheService = TestBed.inject(TranslationCacheService) + window['onecxTranslations'] = {} jest.clearAllMocks() })