Skip to content

Commit 381236b

Browse files
committed
test: ✅ update tests #464
1 parent 28da5f9 commit 381236b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/app/modules/shared/components/details-fields/details-fields.component.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ describe('DetailsFieldsComponent', () => {
207207
description: '',
208208
start_date: new Date('2020-02-05T00:00:01').toISOString(),
209209
end_date: new Date('2020-02-05T00:01:01').toISOString(),
210-
uri: ''
210+
uri: '',
211+
timezone_offset: new Date().getTimezoneOffset(),
211212
},
212213
shouldRestartEntry: false
213214
};
@@ -276,6 +277,7 @@ describe('DetailsFieldsComponent', () => {
276277
description: '',
277278
start_date: new Date('2020-06-11T00:00:10').toISOString(),
278279
uri: 'ticketUri',
280+
timezone_offset: new Date().getTimezoneOffset(),
279281
},
280282
shouldRestartEntry: false
281283
};

src/app/modules/shared/models/entry.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ export interface NewEntry {
1818
technologies?: string[];
1919
uri?: string;
2020
activity_id?: string;
21-
timezone_offset: number;
21+
timezone_offset?: number;
2222
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ describe('TimeEntriesComponent', () => {
146146
entry: {
147147
project_id: 'project-id',
148148
end_date: '2010-05-05T10:04',
149-
start_date: null
149+
start_date: null,
150+
timezone_offset: 300,
150151
}, shouldRestartEntry: false
151152
};
152153
component.activeTimeEntry = null;
@@ -303,6 +304,7 @@ describe('TimeEntriesComponent', () => {
303304
description: 'description',
304305
technologies: [],
305306
uri: 'abc',
307+
timezone_offset: 300,
306308
}, shouldRestartEntry: false
307309
};
308310
component.entryId = undefined;

0 commit comments

Comments
 (0)