Skip to content

Commit 69697c2

Browse files
committed
Changed test to match new error message
1 parent 4fd194b commit 69697c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/api/runs.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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 () => {

0 commit comments

Comments
 (0)