Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccollum-woolpert committed Mar 25, 2024
1 parent 0a48f09 commit d773ccf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { DatasetComponentComponent } from './dataset.component';
import { provideMockStore } from '@ngrx/store/testing';
import { selectScenarioName } from '../../selectors/dispatcher.selectors';

describe('DatasetComponentComponent', () => {
let component: DatasetComponentComponent;
Expand All @@ -9,6 +11,11 @@ describe('DatasetComponentComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [DatasetComponentComponent],
providers: [
provideMockStore({
selectors: [{ selector: selectScenarioName, value: '' }],
}),
],
}).compileComponents();

fixture = TestBed.createComponent(DatasetComponentComponent);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { TopBarComponent } from './top-bar.component';
import { provideMockStore } from '@ngrx/store/testing';

describe('TopBarComponent', () => {
let component: TopBarComponent;
Expand All @@ -9,6 +10,7 @@ describe('TopBarComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [TopBarComponent],
providers: [provideMockStore()],
}).compileComponents();

fixture = TestBed.createComponent(TopBarComponent);
Expand Down

0 comments on commit d773ccf

Please sign in to comment.