File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -159,12 +159,13 @@ module.exports = () => {
159159
160160 it ( 'should return 400 if range exceeds maximum of 100' , async ( ) => {
161161 const runNumberRange = '1-108' ;
162+ const rangeSize = '108' ;
162163 const response = await request ( server ) . get ( `/api/runs?filter[runNumbers]=${ runNumberRange } ` ) ;
163164
164165 expect ( response . status ) . to . equal ( 400 ) ;
165166 const { errors : [ error ] } = response . body ;
166167 expect ( error . title ) . to . equal ( 'Invalid Attribute' ) ;
167- expect ( error . detail ) . to . equal ( `Range exceeds max size of 100 runs: ${ runNumberRange } ` ) ;
168+ expect ( error . detail ) . to . equal ( `Given range( ${ rangeSize } ), exceeds max size of 100 runs: ${ runNumberRange } ` ) ;
168169 } ) ;
169170
170171 it ( 'should return 400 if the calibration status filter is invalid' , async ( ) => {
You can’t perform that action at this time.
0 commit comments