@@ -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 : '<' , hasStableBeams : true } } ;
107+ getAllLhcFillsDto . query = { filter : { beamDuration : '43200' , beamDurationOperator : '<' } } ;
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 : '<=' , hasStableBeams : true } } ;
116+ getAllLhcFillsDto . query = { filter : { beamDuration : '43200' , beamDurationOperator : '<=' } } ;
117117 const { lhcFills } = await new GetAllLhcFillsUseCase ( ) . execute ( getAllLhcFillsDto )
118118 expect ( lhcFills ) . to . be . an ( 'array' ) . and . lengthOf ( 4 )
119119 lhcFills . forEach ( ( lhcFill ) => {
@@ -122,16 +122,16 @@ module.exports = () => {
122122 } )
123123
124124 it ( 'should only contain specified stable beam durations, = 00:01:40' , async ( ) => {
125- getAllLhcFillsDto . query = { filter : { beamDuration : '100' , beamDurationOperator : '=' , hasStableBeams : true } } ;
125+ getAllLhcFillsDto . query = { filter : { beamDuration : '100' , beamDurationOperator : '=' } } ;
126126 const { lhcFills } = await new GetAllLhcFillsUseCase ( ) . execute ( getAllLhcFillsDto )
127- expect ( lhcFills ) . to . be . an ( 'array' ) . and . lengthOf ( 2 )
127+ expect ( lhcFills ) . to . be . an ( 'array' ) . and . lengthOf ( 3 )
128128 lhcFills . forEach ( ( lhcFill ) => {
129129 expect ( lhcFill . stableBeamsDuration ) . equal ( 100 )
130130 } ) ;
131131 } ) ;
132132
133133 it ( 'should only contain specified stable beam durations, >= 00:01:40' , async ( ) => {
134- getAllLhcFillsDto . query = { filter : { beamDuration : '100' , beamDurationOperator : '>=' , hasStableBeams : true } } ;
134+ getAllLhcFillsDto . query = { filter : { beamDuration : '100' , beamDurationOperator : '>=' } } ;
135135 const { lhcFills } = await new GetAllLhcFillsUseCase ( ) . execute ( getAllLhcFillsDto )
136136 console . log ( lhcFills ) ;
137137
@@ -142,11 +142,11 @@ module.exports = () => {
142142 } )
143143
144144 it ( 'should only contain specified stable beam durations, > 00:01:40' , async ( ) => {
145- getAllLhcFillsDto . query = { filter : { beamDuration : '100' , beamDurationOperator : '>' , hasStableBeams : true } } ;
145+ getAllLhcFillsDto . query = { filter : { beamDuration : '100' , beamDurationOperator : '>' } } ;
146146 const { lhcFills } = await new GetAllLhcFillsUseCase ( ) . execute ( getAllLhcFillsDto )
147147 console . log ( lhcFills ) ;
148148
149- expect ( lhcFills ) . to . be . an ( 'array' ) . and . lengthOf ( 2 )
149+ expect ( lhcFills ) . to . be . an ( 'array' ) . and . lengthOf ( 1 )
150150 lhcFills . forEach ( ( lhcFill ) => {
151151 expect ( lhcFill . stableBeamsDuration ) . greaterThan ( 100 )
152152 } ) ;
0 commit comments