Skip to content

Commit 705c72b

Browse files
authored
Merge pull request #267 from ioet/265-remove-modal-component
closes #265 closes #266
2 parents baf9fa1 + 44deee7 commit 705c72b

File tree

9 files changed

+12
-81
lines changed

9 files changed

+12
-81
lines changed

src/app/app.module.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import { TimeClockComponent } from './modules/time-clock/pages/time-clock.compon
2222
import { TimeEntriesComponent } from './modules/time-entries/pages/time-entries.component';
2323
import { DetailsFieldsComponent } from './modules/shared/components/details-fields/details-fields.component';
2424
import { ProjectListHoverComponent } from './modules/time-clock/components/project-list-hover/project-list-hover.component';
25-
import { ModalComponent } from './modules/shared/components/modal/modal.component';
2625
import { MonthPickerComponent } from './modules/shared/components/month-picker/month-picker.component';
2726
import { EmptyStateComponent } from './modules/shared/components/empty-state/empty-state.component';
2827
import { GroupByDatePipe } from './modules/shared/pipes/group-by-date/group-by-date.pipe';

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
import * as actions from './project.actions';
22

33
describe('Actions for Projects', () => {
4+
5+
it('LoadProjectsSuccess type is ProjectActionTypes.LOAD_PROJECTS_SUCCESS', () => {
6+
const action = new actions.LoadProjectsSuccess([]);
7+
expect(action.type).toEqual(actions.ProjectActionTypes.LOAD_PROJECTS_SUCCESS);
8+
});
9+
10+
it('LoadProjectsFail type is ProjectActionTypes.LOAD_PROJECTS_FAIL', () => {
11+
const action = new actions.LoadProjectsFail('error');
12+
expect(action.type).toEqual(actions.ProjectActionTypes.LOAD_PROJECTS_FAIL);
13+
});
14+
415
it('LoadCustomerProjectsSuccess type is ProjectActionTypes.LOAD_CUSTOMER_PROJECTS_SUCCESS', () => {
516
const LoadCustomerProjectsSuccess = new actions.LoadCustomerProjectsSuccess([]);
617
expect(LoadCustomerProjectsSuccess.type).toEqual(actions.ProjectActionTypes.LOAD_CUSTOMER_PROJECTS_SUCCESS);

src/app/modules/shared/components/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export * from './clock/clock.component';
22
export * from './details-fields/details-fields.component';
33
export * from './empty-state/empty-state.component';
4-
export * from './modal/modal.component';
54
export * from './month-picker/month-picker.component';
65
export * from './navbar/navbar.component';
76
export * from './sidebar/sidebar.component';

src/app/modules/shared/components/modal/modal.component.html

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/app/modules/shared/components/modal/modal.component.scss

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/app/modules/shared/components/modal/modal.component.spec.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/app/modules/shared/components/modal/modal.component.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/app/modules/time-clock/components/project-list-hover/project-list-hover.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('ProjectListHoverComponent', () => {
7272

7373
component.clockIn();
7474

75-
expect(store.dispatch).toHaveBeenCalledWith(new UpdateActiveEntry(updatedEntry));
75+
expect(store.dispatch).toHaveBeenCalledWith(jasmine.any(UpdateActiveEntry));
7676
});
7777

7878
});

src/app/modules/time-entries/pages/time-entries.component.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
MonthPickerComponent,
77
DetailsFieldsComponent,
88
EmptyStateComponent,
9-
ModalComponent,
109
} from '../../shared/components';
1110
import { GroupByDatePipe } from '../../shared/pipes';
1211
import { TechnologyState } from '../../shared/store/technology.reducers';
@@ -66,7 +65,6 @@ describe('TimeEntriesComponent', () => {
6665
EmptyStateComponent,
6766
DetailsFieldsComponent,
6867
GroupByDatePipe,
69-
ModalComponent,
7068
MonthPickerComponent,
7169
TimeEntriesComponent,
7270
],

0 commit comments

Comments
 (0)