From 20c976dd96e753ec25a9a46e4436d0a130bc215d Mon Sep 17 00:00:00 2001 From: Ryan Bradford Date: Thu, 27 Aug 2020 10:52:11 -0400 Subject: [PATCH] Fixes a problem due to a breaking TS change Signed-off-by: Ryan Bradford --- projects/i18n/package.json | 2 +- projects/i18n/src/lib/service/mock-translation-service.spec.ts | 2 +- projects/i18n/src/lib/service/mock-translation-service.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/i18n/package.json b/projects/i18n/package.json index b3134fd0..230f5011 100644 --- a/projects/i18n/package.json +++ b/projects/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@vcd/i18n", - "version": "1.0.0-dev.0", + "version": "1.0.0-dev.1", "peerDependencies": { "@angular/common": ">6.0.0", "@angular/core": ">6.0.0" diff --git a/projects/i18n/src/lib/service/mock-translation-service.spec.ts b/projects/i18n/src/lib/service/mock-translation-service.spec.ts index 2fec9aed..e79e84bf 100644 --- a/projects/i18n/src/lib/service/mock-translation-service.spec.ts +++ b/projects/i18n/src/lib/service/mock-translation-service.spec.ts @@ -10,7 +10,7 @@ describe('MockTranslationService', () => { it('uses the perferred local set', () => { service.preferredLocale = 'en'; - expect(service.activeLocale).toEqual('en'); + expect(service.getActiveLocale()).toEqual('en'); }); it('formats dates using the default formatter', () => { diff --git a/projects/i18n/src/lib/service/mock-translation-service.ts b/projects/i18n/src/lib/service/mock-translation-service.ts index 7d5ffed5..626f8a2c 100644 --- a/projects/i18n/src/lib/service/mock-translation-service.ts +++ b/projects/i18n/src/lib/service/mock-translation-service.ts @@ -17,7 +17,7 @@ class MockTranslationService extends TranslationService { registerTranslations(set: TranslationSet): void {} - get activeLocale(): string { + getActiveLocale(): string { return this.preferredLocale; }