Skip to content

Commit f1f91e5

Browse files
author
GuustMetz
committed
use valueFrom and valueTo in url construction
1 parent 050a3ea commit f1f91e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/api/lhcFills.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ module.exports = () => {
506506

507507
it('should return 400 when stableBeamEnd filter "from" is greater than "to"', (done) => {
508508
request(server)
509-
.get('/api/lhcFills?page[offset]=0&page[limit]=15&filter[stableBeamsEnd][from]=1647867600000&filter[stableBeamsEnd][to]=1647867600000')
509+
.get('/api/lhcFills?page[offset]=0&page[limit]=15&filter[stableBeamsEnd][from]=1647867699999&filter[stableBeamsEnd][to]=1647867600000')
510510
.expect(400)
511511
.end((err, res) => {
512512
if (err) {
@@ -523,7 +523,7 @@ module.exports = () => {
523523

524524
it('should return 400 when stableBeamStart filter "from" is greater than "to"', (done) => {
525525
request(server)
526-
.get('/api/lhcFills?page[offset]=0&page[limit]=15&filter[stableBeamsStart][from]=2647867600000&filter[stableBeamsStart][to]=1647867600000')
526+
.get('/api/lhcFills?page[offset]=0&page[limit]=15&filter[stableBeamsStart][from]=1647867699999&filter[stableBeamsStart][to]=1647867600000')
527527
.expect(400)
528528
.end((err, res) => {
529529
if (err) {
@@ -564,7 +564,7 @@ module.exports = () => {
564564
const toValue = 2000000000000;
565565

566566
request(server)
567-
.get("/api/lhcFills?page[offset]=0&page[limit]=15&filter[stableBeamsStart][to]=2000000000000&filter[stableBeamsEnd][to]=2000000000000")
567+
.get(`/api/lhcFills?page[offset]=0&page[limit]=15&filter[stableBeamsStart][to]=${toValue}&filter[stableBeamsEnd][to]=${toValue}`)
568568
.expect(200)
569569
.end((err, res) => {
570570
if (err) {

0 commit comments

Comments
 (0)