diff --git a/src/app/modules/reports/components/time-entries-table/time-entries-table.component.spec.ts b/src/app/modules/reports/components/time-entries-table/time-entries-table.component.spec.ts
index 510634060..5c74db2b0 100644
--- a/src/app/modules/reports/components/time-entries-table/time-entries-table.component.spec.ts
+++ b/src/app/modules/reports/components/time-entries-table/time-entries-table.component.spec.ts
@@ -155,13 +155,13 @@ describe('Reports Page', () => {
});
});
- it('The data should be displayed as a multiple of hour when column is equal to 3', () => {
- const column = 3;
+ it('The data should be displayed as a multiple of hour when column is equal to 4', () => {
+ const column = 4;
expect(component.bodyExportOptions(durationTime, row, column, node)).toMatch(decimalValidator);
});
- it('The data should not be displayed as a multiple of hour when column is different of 3', () => {
- const column = 4;
+ it('The data should not be displayed as a multiple of hour when column is different of 4', () => {
+ const column = 5;
expect(component.bodyExportOptions(durationTime, row, column, node)).toBe(durationTime.toString());
});
@@ -217,6 +217,54 @@ describe('Reports Page', () => {
expect({hours, minutes, seconds}).toEqual({hours:0, minutes:0, seconds:0});
});
+ it('should export data with the correct format', () => {
+ const data = [
+ '',
+ '19',
+ 'user@ioet.com',
+ '07/01/2022',
+ '09:00',
+ '09:00',
+ '18:00',
+ 'Project_Name',
+ '3',
+ 'Customer_Name',
+ '3',
+ 'Activity_Name',
+ ` https://ioetec.atlassian.net/browse/CB-115 `,
+ '',
+ `