Skip to content
Snippets Groups Projects
Commit da6f86b7 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

add providers

parent d580c3e8
No related branches found
No related tags found
1 merge request!532NCM: handle url query
import {provideHttpClient} from '@angular/common/http'; import {provideHttpClient} from '@angular/common/http';
import {ComponentFixture, TestBed} from '@angular/core/testing'; import {ComponentFixture, TestBed} from '@angular/core/testing';
import {provideNoopAnimations} from '@angular/platform-browser/animations'; import {provideNoopAnimations} from '@angular/platform-browser/animations';
import {provideRouter} from '@angular/router';
import {AboutComponent} from './about.component'; import {AboutComponent} from './about.component';
...@@ -11,7 +12,11 @@ describe('AboutComponent', () => { ...@@ -11,7 +12,11 @@ describe('AboutComponent', () => {
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
imports: [AboutComponent], imports: [AboutComponent],
providers: [provideHttpClient(), provideNoopAnimations()], providers: [
provideHttpClient(),
provideNoopAnimations(),
provideRouter([]),
],
}).compileComponents(); }).compileComponents();
fixture = TestBed.createComponent(AboutComponent); fixture = TestBed.createComponent(AboutComponent);
......
import {provideHttpClient} from '@angular/common/http'; import {provideHttpClient} from '@angular/common/http';
import {ComponentFixture, TestBed} from '@angular/core/testing'; import {ComponentFixture, TestBed} from '@angular/core/testing';
import {provideNoopAnimations} from '@angular/platform-browser/animations'; import {provideNoopAnimations} from '@angular/platform-browser/animations';
import {provideRouter} from '@angular/router';
import {ControlPanelComponent} from './control-panel.component'; import {ControlPanelComponent} from './control-panel.component';
...@@ -11,7 +12,11 @@ describe('ControlPanelComponent', () => { ...@@ -11,7 +12,11 @@ describe('ControlPanelComponent', () => {
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
imports: [ControlPanelComponent], imports: [ControlPanelComponent],
providers: [provideHttpClient(), provideNoopAnimations()], providers: [
provideHttpClient(),
provideNoopAnimations(),
provideRouter([]),
],
}).compileComponents(); }).compileComponents();
fixture = TestBed.createComponent(ControlPanelComponent); fixture = TestBed.createComponent(ControlPanelComponent);
......
import {provideHttpClient} from '@angular/common/http'; import {provideHttpClient} from '@angular/common/http';
import {ComponentFixture, TestBed} from '@angular/core/testing'; import {ComponentFixture, TestBed} from '@angular/core/testing';
import {provideNoopAnimations} from '@angular/platform-browser/animations'; import {provideNoopAnimations} from '@angular/platform-browser/animations';
import {provideRouter} from '@angular/router';
import {DataComponent} from './data.component'; import {DataComponent} from './data.component';
...@@ -11,7 +12,11 @@ describe('DataComponent', () => { ...@@ -11,7 +12,11 @@ describe('DataComponent', () => {
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
imports: [DataComponent], imports: [DataComponent],
providers: [provideHttpClient(), provideNoopAnimations()], providers: [
provideHttpClient(),
provideNoopAnimations(),
provideRouter([]),
],
}).compileComponents(); }).compileComponents();
fixture = TestBed.createComponent(DataComponent); fixture = TestBed.createComponent(DataComponent);
......
import {provideHttpClient} from '@angular/common/http'; import {provideHttpClient} from '@angular/common/http';
import {ComponentFixture, TestBed} from '@angular/core/testing'; import {ComponentFixture, TestBed} from '@angular/core/testing';
import {provideNoopAnimations} from '@angular/platform-browser/animations'; import {provideNoopAnimations} from '@angular/platform-browser/animations';
import {provideRouter} from '@angular/router';
import {ParameterSummaryComponent} from './parameter-summary.component'; import {ParameterSummaryComponent} from './parameter-summary.component';
...@@ -11,7 +12,11 @@ describe('ParameterSummaryComponent', () => { ...@@ -11,7 +12,11 @@ describe('ParameterSummaryComponent', () => {
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
imports: [ParameterSummaryComponent], imports: [ParameterSummaryComponent],
providers: [provideHttpClient(), provideNoopAnimations()], providers: [
provideHttpClient(),
provideNoopAnimations(),
provideRouter([]),
],
}).compileComponents(); }).compileComponents();
fixture = TestBed.createComponent(ParameterSummaryComponent); fixture = TestBed.createComponent(ParameterSummaryComponent);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment