Skip to content

Commit 286d636

Browse files
committed
Fix tests following restriction of input fields
1 parent 5257abd commit 286d636

3 files changed

Lines changed: 0 additions & 13 deletions

File tree

test/api/lhcFills.test.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ module.exports = () => {
4242
.post('/api/lhcFills')
4343
.send({
4444
fillNumber: 544455,
45-
stableBeamsStart: new Date('2022-03-22 15:00:00'),
46-
stableBeamsEnd: new Date('2022-03-22 15:00:00'),
47-
stableBeamsDuration: 600,
4845
beamType: 'Pb-Pb',
4946
fillingSchemeName: 'schemename',
5047
});
@@ -67,7 +64,6 @@ module.exports = () => {
6764
stableBeamsStart: new Date('2022-03-22 15:00:00'),
6865
stableBeamsEnd: new Date('2022-03-22 15:00:00'),
6966
stableBeamsDuration: 600,
70-
beamType: 'Pb-Pb',
7167
fillingSchemeName: 'schemename',
7268
})
7369
.end((err, res) => {
@@ -103,7 +99,6 @@ module.exports = () => {
10399
stableBeamsStart: new Date('2022-03-22 15:00:00'),
104100
stableBeamsEnd: new Date('2022-03-22 15:00:00'),
105101
stableBeamsDuration: 600,
106-
beamType: 'Pb-Pb',
107102
fillingSchemeName: 'schemename',
108103
collidingBunchesCount: 7654321,
109104
deliveredLuminosity: 123.123456,

test/lib/usecases/lhcFill/CreateLhcFillUseCase.test.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ module.exports = () => {
2424
createLhcFillDto = await CreateLhcFillDto.validateAsync({
2525
body: {
2626
fillNumber: 123123123,
27-
stableBeamsStart: new Date('2022-03-22 15:00:00'),
28-
stableBeamsEnd: new Date('2022-03-22 15:00:00'),
29-
stableBeamsDuration: 600,
3027
beamType: 'Pb-Pb',
3128
fillingSchemeName: 'schemename',
3229
},
@@ -52,9 +49,6 @@ module.exports = () => {
5249
.execute(createLhcFillDto);
5350

5451
expect(result.fillNumber).to.equal(123123);
55-
expect(result.stableBeamsStart).to.equal(new Date('2022-03-22 15:00:00 utc').getTime());
56-
expect(result.stableBeamsEnd).to.equal(new Date('2022-03-22 15:00:00 utc').getTime());
57-
expect(result.stableBeamsDuration).to.equal(600);
5852
expect(result.beamType).to.equal('Pb-Pb');
5953
expect(result.fillingSchemeName).to.equal('schemename');
6054
});

test/lib/usecases/lhcFill/UpdateLhcFillUseCase.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ module.exports = () => {
3535
stableBeamsStart: new Date('2022-03-21 13:00:00'),
3636
stableBeamsEnd: new Date('2022-03-22 15:00:00'),
3737
stableBeamsDuration: 600,
38-
beamType: 'Pb-Pb',
3938
fillingSchemeName: 'schemename',
4039
},
4140
});
@@ -53,7 +52,6 @@ module.exports = () => {
5352
expect(result.stableBeamsStart).to.equal(new Date('2022-03-21 13:00:00 utc').getTime());
5453
expect(result.stableBeamsEnd).to.equal(new Date('2022-03-22 15:00:00 utc').getTime());
5554
expect(result.stableBeamsDuration).to.equal(600);
56-
expect(result.beamType).to.equal('Pb-Pb');
5755
expect(result.fillingSchemeName).to.equal('schemename');
5856
}
5957
{

0 commit comments

Comments
 (0)