@@ -17,10 +17,8 @@ describe('Reports Page', () => {
1717 let fixture : ComponentFixture < TimeEntriesTableComponent > ;
1818 let store : MockStore < EntryState > ;
1919 let getReportDataSourceSelectorMock ;
20- let durationTime : number ;
2120 let row : number ;
2221 let node : number ;
23- let decimalValidator : RegExp ;
2422 const timeEntry : Entry = {
2523 id : '123' ,
2624 start_date : new Date ( ) ,
@@ -102,10 +100,8 @@ describe('Reports Page', () => {
102100 ) ;
103101
104102 beforeEach ( ( ) => {
105- durationTime = new Date ( ) . setHours ( 5 , 30 ) ;
106103 row = 0 ;
107104 node = 0 ;
108- decimalValidator = / ^ \d + \. \d { 0 , 2 } $ / ;
109105 } ) ;
110106
111107 it ( 'component should be created' , async ( ) => {
@@ -155,16 +151,6 @@ describe('Reports Page', () => {
155151 } ) ;
156152 } ) ;
157153
158- it ( 'The data should be displayed as a multiple of hour when column is equal to 4' , ( ) => {
159- const column = 4 ;
160- expect ( component . bodyExportOptions ( durationTime , row , column , node ) ) . toMatch ( decimalValidator ) ;
161- } ) ;
162-
163- it ( 'The data should not be displayed as a multiple of hour when column is different of 4' , ( ) => {
164- const column = 5 ;
165- expect ( component . bodyExportOptions ( durationTime , row , column , node ) ) . toBe ( durationTime . toString ( ) ) ;
166- } ) ;
167-
168154 it ( 'The link Ticket must not contain the ticket URL enclosed with < > when export a file csv, excel or PDF' , ( ) => {
169155 const entry = '<a _ngcontent-vlm-c151="" class="is-url">https://TT-392-uri</a>' ;
170156 const column = 0 ;
@@ -247,7 +233,7 @@ describe('Reports Page', () => {
247233 '19' ,
248234249235 '07/01/2022' ,
250- '9. 00' ,
236+ '09: 00' ,
251237 '09:00' ,
252238 '18:00' ,
253239 'Project_Name' ,
0 commit comments