Skip to content

Commit 4de39db

Browse files
committed
fix: TT-117 update original values to shouldRestartEntry
1 parent 9f275b2 commit 4de39db

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ describe('TimeEntriesComponent', () => {
245245
description: 'description',
246246
technologies: [],
247247
uri: 'abc',
248-
}, shouldRestartEntry: true
248+
}, shouldRestartEntry: false
249249
};
250250
component.entryId = 'entry_1';
251251
spyOn(injectedToastrService, 'error');
@@ -257,7 +257,6 @@ describe('TimeEntriesComponent', () => {
257257

258258
it('displays an error when end date of entry is greater than active entry start date', async () => {
259259
component.activeTimeEntry = entry;
260-
261260
const newEntry = {
262261
entry: {
263262
project_id: 'p-id',
@@ -266,7 +265,7 @@ describe('TimeEntriesComponent', () => {
266265
description: 'description',
267266
technologies: [],
268267
uri: 'abc',
269-
}, shouldRestartEntry: true
268+
}, shouldRestartEntry: false
270269
};
271270
component.entryId = 'entry_1';
272271
spyOn(injectedToastrService, 'error');
@@ -363,7 +362,7 @@ describe('TimeEntriesComponent', () => {
363362
technologies: [],
364363
uri: 'abc',
365364

366-
}, shouldRestartEntry: false
365+
}, shouldRestartEntry: true
367366
};
368367

369368
component.entryId = '123';

0 commit comments

Comments
 (0)