Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sggerard committed Oct 16, 2024
1 parent 8917aa7 commit ee35160
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 90 deletions.
4 changes: 4 additions & 0 deletions bcmi/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { AppComponent } from './app.component';
import { SafeHtmlPipe } from '@pipes/safe-html.pipe';
import { Apollo } from 'apollo-angular';
import { ContentService } from './services/content-service';
import { HeaderComponent } from './header/header.component';
import { FooterComponent } from './footer/footer.component';

describe('AppComponent', () => {
beforeEach(waitForAsync(() => {
Expand All @@ -21,6 +23,8 @@ describe('AppComponent', () => {
ContentService
],
declarations: [
HeaderComponent,
FooterComponent,
AppComponent,
SafeHtmlPipe
],
Expand Down
6 changes: 4 additions & 2 deletions bcmi/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ export class AppComponent implements OnInit, AfterViewInit {
private modalService: NgbModal,
private configService: ConfigService,
private router: Router) {
this.footer = configService.globalContent.footer?.data.attributes;
this.navigation = configService.globalContent.navigations?.data;
if(configService.globalContent){
this.footer = configService.globalContent.footer?.data.attributes;
this.navigation = configService.globalContent.navigations?.data;
}
this.router.events.subscribe((event: Event) => {
switch (true) {
case event instanceof NavigationStart: {
Expand Down
4 changes: 2 additions & 2 deletions bcmi/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ export function initConfig(configService: ConfigService) {

@NgModule({
declarations: [
AppComponent,
HomeComponent,
HeaderComponent,
FooterComponent,
AppComponent,
HomeComponent,
LegislationComponent,
ComplianceOversightComponent,
ContactComponent,
Expand Down
43 changes: 0 additions & 43 deletions bcmi/src/app/footer/footer.component.spec.ts

This file was deleted.

43 changes: 0 additions & 43 deletions bcmi/src/app/header/header.component.spec.ts

This file was deleted.

0 comments on commit ee35160

Please sign in to comment.