@@ -17,10 +17,8 @@ describe('Reports Page', () => {
17
17
let fixture : ComponentFixture < TimeEntriesTableComponent > ;
18
18
let store : MockStore < EntryState > ;
19
19
let getReportDataSourceSelectorMock ;
20
- let durationTime : number ;
21
20
let row : number ;
22
21
let node : number ;
23
- let decimalValidator : RegExp ;
24
22
const timeEntry : Entry = {
25
23
id : '123' ,
26
24
start_date : new Date ( ) ,
@@ -102,10 +100,8 @@ describe('Reports Page', () => {
102
100
) ;
103
101
104
102
beforeEach ( ( ) => {
105
- durationTime = new Date ( ) . setHours ( 5 , 30 ) ;
106
103
row = 0 ;
107
104
node = 0 ;
108
- decimalValidator = / ^ \d + \. \d { 0 , 2 } $ / ;
109
105
} ) ;
110
106
111
107
it ( 'component should be created' , async ( ) => {
@@ -155,16 +151,6 @@ describe('Reports Page', () => {
155
151
} ) ;
156
152
} ) ;
157
153
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
-
168
154
it ( 'The link Ticket must not contain the ticket URL enclosed with < > when export a file csv, excel or PDF' , ( ) => {
169
155
const entry = '<a _ngcontent-vlm-c151="" class="is-url">https://TT-392-uri</a>' ;
170
156
const column = 0 ;
@@ -247,7 +233,7 @@ describe('Reports Page', () => {
247
233
'19' ,
248
234
249
235
'07/01/2022' ,
250
- '9. 00' ,
236
+ '09: 00' ,
251
237
'09:00' ,
252
238
'18:00' ,
253
239
'Project_Name' ,
0 commit comments