Skip to content

Commit 9389f3a

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

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ describe('TimeEntryActionEffects', () => {
2525
const dateTest = moment().format('YYYY-MM-DD');
2626
const endHourTest = moment().subtract(5, 'hours').format('HH:mm:ss');
2727
const startHourTest = moment().subtract(3, 'hours').format('HH:mm:ss');
28-
const endDateTest = new Date(`${dateTest}T${endHourTest.trim()}`);
2928
const startDateTest = new Date(`${dateTest}T${startHourTest.trim()}`);
3029

3130
const entryUpdate = {

0 commit comments

Comments
 (0)