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

add providers

parent 51ed6619
No related branches found
No related tags found
1 merge request!442Signals and Reactive Forms: hanging wall effects
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 {provideMockStore} from '@ngrx/store/testing';
import {ContentComponent} from './content.component'; import {ContentComponent} from './content.component';
...@@ -11,10 +11,7 @@ describe('ContentComponent', () => { ...@@ -11,10 +11,7 @@ describe('ContentComponent', () => {
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
imports: [ContentComponent], imports: [ContentComponent],
providers: [ providers: [provideNoopAnimations(), provideHttpClient()],
provideMockStore({initialState: {}}),
provideNoopAnimations(),
],
}).compileComponents(); }).compileComponents();
fixture = TestBed.createComponent(ContentComponent); fixture = TestBed.createComponent(ContentComponent);
......
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 {provideMockStore} from '@ngrx/store/testing'; import {provideNoopAnimations} from '@angular/platform-browser/animations';
import {ControlPanelComponent} from './control-panel.component'; import {ControlPanelComponent} from './control-panel.component';
...@@ -11,7 +11,7 @@ describe('ControlPanelComponent', () => { ...@@ -11,7 +11,7 @@ describe('ControlPanelComponent', () => {
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
imports: [ControlPanelComponent], imports: [ControlPanelComponent],
providers: [provideMockStore({initialState: {}}), provideHttpClient()], providers: [provideHttpClient(), provideNoopAnimations()],
}).compileComponents(); }).compileComponents();
fixture = TestBed.createComponent(ControlPanelComponent); fixture = TestBed.createComponent(ControlPanelComponent);
......
import {provideHttpClient} from '@angular/common/http';
import {ComponentFixture, TestBed} from '@angular/core/testing'; import {ComponentFixture, TestBed} from '@angular/core/testing';
import {provideMockStore} from '@ngrx/store/testing'; import {FormControl} from '@angular/forms';
import {provideNoopAnimations} from '@angular/platform-browser/animations';
import {FaultControlComponent} from './fault-control.component'; import {FaultControlComponent} from './fault-control.component';
...@@ -10,11 +12,14 @@ describe('FaultControlComponent', () => { ...@@ -10,11 +12,14 @@ describe('FaultControlComponent', () => {
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
imports: [FaultControlComponent], imports: [FaultControlComponent],
providers: [provideMockStore({initialState: {}})], providers: [provideHttpClient(), provideNoopAnimations()],
}).compileComponents(); }).compileComponents();
fixture = TestBed.createComponent(FaultControlComponent); fixture = TestBed.createComponent(FaultControlComponent);
component = fixture.componentInstance; component = fixture.componentInstance;
component.control = new FormControl(0, {
nonNullable: true,
});
fixture.detectChanges(); fixture.detectChanges();
}); });
......
import {provideHttpClient} from '@angular/common/http';
import {ComponentFixture, TestBed} from '@angular/core/testing'; import {ComponentFixture, TestBed} from '@angular/core/testing';
import {provideMockStore} from '@ngrx/store/testing';
import {ParameterSummaryComponent} from './parameter-summary.component'; import {ParameterSummaryComponent} from './parameter-summary.component';
...@@ -10,7 +10,7 @@ describe('ParameterSummaryComponent', () => { ...@@ -10,7 +10,7 @@ describe('ParameterSummaryComponent', () => {
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
imports: [ParameterSummaryComponent], imports: [ParameterSummaryComponent],
providers: [provideMockStore({initialState: {}})], providers: [provideHttpClient()],
}).compileComponents(); }).compileComponents();
fixture = TestBed.createComponent(ParameterSummaryComponent); fixture = TestBed.createComponent(ParameterSummaryComponent);
......
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 {provideMockStore} from '@ngrx/store/testing';
import {PlotSettingsComponent} from './plot-settings.component'; import {PlotSettingsComponent} from './plot-settings.component';
...@@ -12,11 +11,7 @@ describe('PlotSettingsComponent', () => { ...@@ -12,11 +11,7 @@ describe('PlotSettingsComponent', () => {
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
imports: [PlotSettingsComponent], imports: [PlotSettingsComponent],
providers: [ providers: [provideHttpClient(), provideNoopAnimations()],
provideMockStore({initialState: {}}),
provideHttpClient(),
provideNoopAnimations(),
],
}).compileComponents(); }).compileComponents();
fixture = TestBed.createComponent(PlotSettingsComponent); fixture = TestBed.createComponent(PlotSettingsComponent);
......
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 {provideMockStore} from '@ngrx/store/testing';
import {PlotsComponent} from './plots.component'; import {PlotsComponent} from './plots.component';
...@@ -12,11 +11,7 @@ describe('PlotsComponent', () => { ...@@ -12,11 +11,7 @@ describe('PlotsComponent', () => {
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
imports: [PlotsComponent], imports: [PlotsComponent],
providers: [ providers: [provideHttpClient(), provideNoopAnimations()],
provideMockStore({initialState: {}}),
provideHttpClient(),
provideNoopAnimations(),
],
}).compileComponents(); }).compileComponents();
fixture = TestBed.createComponent(PlotsComponent); fixture = TestBed.createComponent(PlotsComponent);
......
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