Skip to content

Commit 3106624

Browse files
committed
fix: TTL-919 debug 2 test modules
1 parent 51c0dea commit 3106624

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

src/app/modules/customer-management/store/customer-management.actions.spec.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
1+
import { TestBed, waitForAsync } from '@angular/core/testing';
2+
13
import * as actions from './customer-management.actions';
4+
import { TimeRangeFormComponent } from '../../reports/components/time-range-form/time-range-form.component';
5+
import { TechnologyReportTableComponent } from '../../technology-report/components/technology-report-table/technology-report-table.component';
6+
27

38
describe('CustomerManagmentActions', () => {
9+
10+
beforeEach(waitForAsync(() => {
11+
TestBed.configureTestingModule({
12+
declarations: [TimeRangeFormComponent, TechnologyReportTableComponent],
13+
imports: [],
14+
}).compileComponents();
15+
}));
16+
417
it('CreateCustomer type is CustomerManagementActionTypes.CREATE_CUSTOMER', () => {
518
const createActivity = new actions.CreateCustomer({
619
name: 'aa',

src/app/modules/users/store/user.selectors.spec.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1+
import { TestBed, waitForAsync } from '@angular/core/testing';
2+
import { provideMockStore } from '@ngrx/store/testing';
3+
14
import * as selectors from './user.selectors';
5+
import { TimeEntriesTableComponent } from '../../reports/components/time-entries-table/time-entries-table.component';
6+
import { TimeEntriesComponent } from '../../time-entries/pages/time-entries.component';
7+
import { TimeRangeFormComponent } from '../../reports/components/time-range-form/time-range-form.component';
8+
29

310
describe('UserSelectors', () => {
11+
12+
beforeEach(waitForAsync(() => {
13+
TestBed.configureTestingModule({
14+
declarations: [TimeEntriesTableComponent, TimeEntriesComponent, TimeRangeFormComponent],
15+
providers: [provideMockStore({ initialState: {} })],
16+
}).compileComponents();
17+
}));
18+
419
it('should select is Loading', () => {
520
const isLoadingValue = true;
621
const userState = { isLoading: isLoadingValue };

0 commit comments

Comments
 (0)