Skip to content
Prev Previous commit
Next Next commit
fix: TTL-919 debug 2 test modules
  • Loading branch information
mmaquina committed Jul 14, 2023
commit 3106624cd53d2e883089587f41afb23c4312c955
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
import { TestBed, waitForAsync } from '@angular/core/testing';

import * as actions from './customer-management.actions';
import { TimeRangeFormComponent } from '../../reports/components/time-range-form/time-range-form.component';
import { TechnologyReportTableComponent } from '../../technology-report/components/technology-report-table/technology-report-table.component';


describe('CustomerManagmentActions', () => {

beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [TimeRangeFormComponent, TechnologyReportTableComponent],
imports: [],
}).compileComponents();
}));

it('CreateCustomer type is CustomerManagementActionTypes.CREATE_CUSTOMER', () => {
const createActivity = new actions.CreateCustomer({
name: 'aa',
Expand Down
15 changes: 15 additions & 0 deletions src/app/modules/users/store/user.selectors.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
import { TestBed, waitForAsync } from '@angular/core/testing';
import { provideMockStore } from '@ngrx/store/testing';

import * as selectors from './user.selectors';
import { TimeEntriesTableComponent } from '../../reports/components/time-entries-table/time-entries-table.component';
import { TimeEntriesComponent } from '../../time-entries/pages/time-entries.component';
import { TimeRangeFormComponent } from '../../reports/components/time-range-form/time-range-form.component';


describe('UserSelectors', () => {

beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [TimeEntriesTableComponent, TimeEntriesComponent, TimeRangeFormComponent],
providers: [provideMockStore({ initialState: {} })],
}).compileComponents();
}));

it('should select is Loading', () => {
const isLoadingValue = true;
const userState = { isLoading: isLoadingValue };
Expand Down