Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: TTA-49 refactor test time range custom and entry effects
  • Loading branch information
jimmyjaramillo committed Jun 24, 2022
commit 6f99b39aa4a526b8a2c3619e02e5c89b6727fe7c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ describe('TimeRangeCustomComponent', () => {
let fixture: ComponentFixture<TimeRangeCustomComponent>;
let store: MockStore<EntryState>;
const toastrServiceStub = {
error: () => {}
error: () => {
return 'test error';
}
};

const timeEntry = {
Expand Down
2 changes: 0 additions & 2 deletions src/app/modules/time-clock/store/entry.effects.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ describe('TimeEntryActionEffects', () => {
const entry: Entry = { project_id: 'p-id', start_date: new Date(), id: 'id' };

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

const entryUpdate = {
Expand Down