From 160fca24c53840719926e43007e026e14ffdda87 Mon Sep 17 00:00:00 2001 From: JerinJ Date: Thu, 13 Feb 2020 15:26:53 +0530 Subject: [PATCH 1/3] Fixed breaking test case due to missing style file --- styles.css | 1 + 1 file changed, 1 insertion(+) create mode 100644 styles.css diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..90d4ee0 --- /dev/null +++ b/styles.css @@ -0,0 +1 @@ +/* You can add global styles to this file, and also import other style files */ From d90ad1730a3101e84fdbdd51c4231064e1b41c4b Mon Sep 17 00:00:00 2001 From: JerinJ Date: Thu, 13 Feb 2020 15:27:23 +0530 Subject: [PATCH 2/3] Fixed branch cover for 100% code coverage. --- src/app/app.component.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index decf4b1..7a6dcb3 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -40,7 +40,7 @@ describe('AppComponent', () => { })); it('should load translations', async(() => { - spyOn(translate, 'getBrowserLang').and.returnValue('en'); + spyOn(translate, 'getBrowserLang').and.returnValue(''); const fixture = TestBed.createComponent(AppComponent); const compiled = fixture.debugElement.nativeElement; From c185e0ef9155ca3efc427e4a02439c7e3c9a53cf Mon Sep 17 00:00:00 2001 From: JerinJ Date: Thu, 13 Feb 2020 15:35:27 +0530 Subject: [PATCH 3/3] Fixed issue with styles --- angular.json | 2 +- styles.css | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 styles.css diff --git a/angular.json b/angular.json index 78b41a3..7ab99a5 100644 --- a/angular.json +++ b/angular.json @@ -66,7 +66,7 @@ "tsConfig": "src/tsconfig.spec.json", "karmaConfig": "src/karma.conf.js", "styles": [ - "styles.css" + "src/styles.css" ], "scripts": [], "assets": [ diff --git a/styles.css b/styles.css deleted file mode 100644 index 90d4ee0..0000000 --- a/styles.css +++ /dev/null @@ -1 +0,0 @@ -/* You can add global styles to this file, and also import other style files */