@@ -27,17 +27,17 @@ describe('pipettingLossTableColumn', () => {
2727 render ( < > { column . render ( null , { volume : 10 , title : '' , key : 1 } , 1 ) } </ > ) ;
2828 render ( < > { column . title } </ > ) ;
2929
30- expect ( screen . getByText ( '22 .0 µl' ) ) . toBeInTheDocument ( ) ;
30+ expect ( screen . getByText ( '30 .0 µl' ) ) . toBeInTheDocument ( ) ;
3131 expect ( screen . getByText ( '2x Ansätze + 10% (PV)' ) ) . toBeInTheDocument ( ) ;
3232 } ) ;
3333 } ) ;
3434
3535 describe ( 'with "factorWithMinimum" pipetting loss type' , ( ) => {
3636 it ( 'should use minimum positions when factor loss is slightly below minimum positions' , ( ) => {
3737 // 19 ansätze × 10µl = 190µl
38- // factor loss: 190µl × 10% = 19µl
38+ // factor loss: ceil(19 × 10%) = ceil(1.9) = 2 positions × 10µl = 20µl
3939 // min positions loss: 2 × 10µl = 20µl
40- // result: 190µl + max(19µl , 20µl) = 210µl
40+ // result: 190µl + max(20µl , 20µl) = 210µl
4141 const column = pipettingLossTableColumn ( {
4242 count : 19 ,
4343 pipettingLoss : {
@@ -55,9 +55,9 @@ describe('pipettingLossTableColumn', () => {
5555
5656 it ( 'should use factor loss when it is slightly above minimum positions' , ( ) => {
5757 // 21 ansätze × 10µl = 210µl
58- // factor loss: 210µl × 10% = 21µl
58+ // factor loss: ceil(21 × 10%) = ceil(2.1) = 3 positions × 10µl = 30µl
5959 // min positions loss: 2 × 10µl = 20µl
60- // result: 210µl + max(21µl , 20µl) = 231µl
60+ // result: 210µl + max(30µl , 20µl) = 240µl
6161 const column = pipettingLossTableColumn ( {
6262 count : 21 ,
6363 pipettingLoss : {
@@ -69,7 +69,7 @@ describe('pipettingLossTableColumn', () => {
6969 render ( < > { column . title } </ > ) ;
7070 render ( < > { column . render ( null , { volume : 10 , title : '' , key : 1 } , 1 ) } </ > ) ;
7171
72- expect ( screen . getByText ( '231 .0 µl' ) ) . toBeInTheDocument ( ) ;
72+ expect ( screen . getByText ( '240 .0 µl' ) ) . toBeInTheDocument ( ) ;
7373 expect ( screen . getByText ( '21x Ansätze + 10% (PV)' ) ) . toBeInTheDocument ( ) ;
7474 } ) ;
7575 } ) ;
0 commit comments