Skip to content

Commit 4944d40

Browse files
committed
fix: ioet#399 fix broken unit tests
1 parent 82a4ff9 commit 4944d40

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ describe('TimeEntriesComponent', () => {
220220
});
221221

222222
it('should dispatch an action when entry is going to be saved', () => {
223+
component.entry = { start_date: new Date(), id: '1234', technologies: []};
223224
const newEntry = {
224225
entry: {
225226
project_id: 'p-id',
@@ -308,6 +309,7 @@ describe('TimeEntriesComponent', () => {
308309
}));
309310

310311
it('when event contains should restart as true, then a restart Entry action should be triggered', () => {
312+
component.entry = { start_date: new Date(), id: '1234', technologies: []};
311313
const entryToSave = {
312314
entry: {
313315
id: '123',

0 commit comments

Comments
 (0)