Skip to content

Commit 6f99b39

Browse files
fix: TTA-49 refactor test time range custom and entry effects
1 parent ac69654 commit 6f99b39

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/modules/reports/components/time-range-custom/time-range-custom.component.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ describe('TimeRangeCustomComponent', () => {
1414
let fixture: ComponentFixture<TimeRangeCustomComponent>;
1515
let store: MockStore<EntryState>;
1616
const toastrServiceStub = {
17-
error: () => {}
17+
error: () => {
18+
return 'test error';
19+
}
1820
};
1921

2022
const timeEntry = {

src/app/modules/time-clock/store/entry.effects.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ describe('TimeEntryActionEffects', () => {
2323
const entry: Entry = { project_id: 'p-id', start_date: new Date(), id: 'id' };
2424

2525
const dateTest = moment().format('YYYY-MM-DD');
26-
const endHourTest = moment().subtract(5, 'hours').format('HH:mm:ss');
2726
const startHourTest = moment().subtract(3, 'hours').format('HH:mm:ss');
28-
const endDateTest = new Date(`${dateTest}T${endHourTest.trim()}`);
2927
const startDateTest = new Date(`${dateTest}T${startHourTest.trim()}`);
3028

3129
const entryUpdate = {

0 commit comments

Comments
 (0)