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
Next Next commit
test: ✅ update tests #464
  • Loading branch information
Angeluz-07 committed Jul 9, 2020
commit 381236b7419273cf626fa4fa15f8fbaed38fcd52
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ describe('DetailsFieldsComponent', () => {
description: '',
start_date: new Date('2020-02-05T00:00:01').toISOString(),
end_date: new Date('2020-02-05T00:01:01').toISOString(),
uri: ''
uri: '',
timezone_offset: new Date().getTimezoneOffset(),
},
shouldRestartEntry: false
};
Expand Down Expand Up @@ -276,6 +277,7 @@ describe('DetailsFieldsComponent', () => {
description: '',
start_date: new Date('2020-06-11T00:00:10').toISOString(),
uri: 'ticketUri',
timezone_offset: new Date().getTimezoneOffset(),
},
shouldRestartEntry: false
};
Expand Down
2 changes: 1 addition & 1 deletion src/app/modules/shared/models/entry.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ export interface NewEntry {
technologies?: string[];
uri?: string;
activity_id?: string;
timezone_offset: number;
timezone_offset?: number;
}
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ describe('TimeEntriesComponent', () => {
entry: {
project_id: 'project-id',
end_date: '2010-05-05T10:04',
start_date: null
start_date: null,
timezone_offset: 300,
}, shouldRestartEntry: false
};
component.activeTimeEntry = null;
Expand Down Expand Up @@ -303,6 +304,7 @@ describe('TimeEntriesComponent', () => {
description: 'description',
technologies: [],
uri: 'abc',
timezone_offset: 300,
}, shouldRestartEntry: false
};
component.entryId = undefined;
Expand Down