@@ -104,7 +104,7 @@ module.exports = () => {
104104 // Beam duration filter tests
105105
106106 it ( 'should only contain specified stable beam durations, < 12:00:00' , async ( ) => {
107- getAllLhcFillsDto . query = { filter : { beamDuration : '43200' , beamDurationOperator : '<' } } ;
107+ getAllLhcFillsDto . query = { filter : { beamDuration : { limit : '43200' , operator : '<' } } } ;
108108 const { lhcFills } = await new GetAllLhcFillsUseCase ( ) . execute ( getAllLhcFillsDto ) ;
109109 expect ( lhcFills ) . to . be . an ( 'array' ) . and . lengthOf ( 3 )
110110 lhcFills . forEach ( ( lhcFill ) => {
@@ -113,7 +113,7 @@ module.exports = () => {
113113 } ) ;
114114
115115 it ( 'should only contain specified stable beam durations, <= 12:00:00' , async ( ) => {
116- getAllLhcFillsDto . query = { filter : { beamDuration : '43200' , beamDurationOperator : '<=' } } ;
116+ getAllLhcFillsDto . query = { filter : { beamDuration : { limit : '43200' , operator : '<=' } } } ;
117117 const { lhcFills } = await new GetAllLhcFillsUseCase ( ) . execute ( getAllLhcFillsDto )
118118 expect ( lhcFills ) . to . be . an ( 'array' ) . and . lengthOf ( 4 )
119119 lhcFills . forEach ( ( lhcFill ) => {
@@ -122,7 +122,7 @@ module.exports = () => {
122122 } )
123123
124124 it ( 'should only contain specified stable beam durations, = 00:01:40' , async ( ) => {
125- getAllLhcFillsDto . query = { filter : { beamDuration : '100' , beamDurationOperator : '=' } } ;
125+ getAllLhcFillsDto . query = { filter : { beamDuration : { limit : '100' , operator : '=' } } } ;
126126 const { lhcFills } = await new GetAllLhcFillsUseCase ( ) . execute ( getAllLhcFillsDto )
127127 expect ( lhcFills ) . to . be . an ( 'array' ) . and . lengthOf ( 3 )
128128 lhcFills . forEach ( ( lhcFill ) => {
@@ -131,7 +131,7 @@ module.exports = () => {
131131 } ) ;
132132
133133 it ( 'should only contain specified stable beam durations, >= 00:01:40' , async ( ) => {
134- getAllLhcFillsDto . query = { filter : { beamDuration : '100' , beamDurationOperator : '>=' } } ;
134+ getAllLhcFillsDto . query = { filter : { beamDuration : { limit : '100' , operator : '>=' } } } ;
135135 const { lhcFills } = await new GetAllLhcFillsUseCase ( ) . execute ( getAllLhcFillsDto )
136136
137137 expect ( lhcFills ) . to . be . an ( 'array' ) . and . lengthOf ( 4 )
@@ -141,7 +141,7 @@ module.exports = () => {
141141 } )
142142
143143 it ( 'should only contain specified stable beam durations, > 00:01:40' , async ( ) => {
144- getAllLhcFillsDto . query = { filter : { beamDuration : '100' , beamDurationOperator : '>' } } ;
144+ getAllLhcFillsDto . query = { filter : { beamDuration : { limit : '100' , operator : '>' } } } ;
145145 const { lhcFills } = await new GetAllLhcFillsUseCase ( ) . execute ( getAllLhcFillsDto )
146146
147147 expect ( lhcFills ) . to . be . an ( 'array' ) . and . lengthOf ( 1 )
@@ -152,7 +152,7 @@ module.exports = () => {
152152
153153 it ( 'should only contain specified stable beam durations, = 00:00:00' , async ( ) => {
154154 // Tests the usecase's ability to replace the request for 0 to a request for null.
155- getAllLhcFillsDto . query = { filter : { hasStableBeams : true , beamDuration : 0 , beamDurationOperator : '=' } } ;
155+ getAllLhcFillsDto . query = { filter : { hasStableBeams : true , beamDuration : { limit : '0' , operator : '=' } } } ;
156156 const { lhcFills } = await new GetAllLhcFillsUseCase ( ) . execute ( getAllLhcFillsDto )
157157
158158 expect ( lhcFills ) . to . be . an ( 'array' ) . and . lengthOf ( 1 )
0 commit comments