@@ -89,7 +89,8 @@ describe('Test format helper', () => {
8989 interface ParamForPeaks {
9090 peaks : any , layout : string , decimal : number , shift : any , isAscend : boolean ,
9191 isIntensity : boolean , boundary : any ,
92- integration : any , atIndex : number
92+ integration : any , atIndex : number ,
93+ fixedWavelength : number
9394 }
9495 let params : ParamForPeaks
9596 beforeEach ( ( ) => {
@@ -100,7 +101,8 @@ describe('Test format helper', () => {
100101 shift : { shifts : [ { ref : LIST_SHIFT_1H [ 1 ] , peak : { x : 2 , y : 2 } } ] } ,
101102 isAscend : false ,
102103 isIntensity : false , boundary : { } ,
103- integration : null , atIndex : 0
104+ integration : null , atIndex : 0 ,
105+ fixedWavelength : 10 ,
104106 }
105107 } )
106108
@@ -137,7 +139,7 @@ describe('Test format helper', () => {
137139 it ( 'Get peaks for Emission layout' , ( ) => {
138140 params . layout = LIST_LAYOUT . EMISSIONS
139141 const body = Format . peaksBody ( params )
140- expect ( body ) . toEqual ( '2.0, 1.0' )
142+ expect ( body ) . toEqual ( 'λex = 10 nm; λem = 2.0, 1.0' )
141143 } )
142144
143145
0 commit comments