Skip to content

Commit feeeedf

Browse files
committed
- Update pathwayAnalysis unit test
1 parent e769fb9 commit feeeedf

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test/routes/report/summary/pathwayAnalysis.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ describe('/reports/{report}/summary/pathway-analysis', () => {
8989
.auth(username, password)
9090
.type('json')
9191
.attach('pathway', 'test/testData/images/pathwayAnalysisData.svg')
92-
.field('legendId', 2)
92+
.field('legendId', 1)
9393
.expect(HTTP_STATUS.OK);
9494

9595
checkPathwayAnalysis(res.body);
9696

9797
expect(res.body.pathway).not.toBeNull();
98-
expect(res.body.legendId).toBe(2);
98+
expect(res.body.legendId).toBe(1);
9999
});
100100

101101
test('/ - 400 Bad request - Invalid legend fk', async () => {
@@ -173,13 +173,13 @@ describe('/reports/{report}/summary/pathway-analysis', () => {
173173
.auth(username, password)
174174
.type('json')
175175
.attach('pathway', 'test/testData/images/pathwayAnalysisData.svg')
176-
.field('legendId', 2)
176+
.field('legendId', 1)
177177
.expect(HTTP_STATUS.CREATED);
178178

179179
checkPathwayAnalysis(res.body);
180180

181181
expect(res.body.pathway).not.toBeNull();
182-
expect(res.body.legendId).toBe(2);
182+
expect(res.body.legendId).toBe(1);
183183

184184
// Remove pathway analysis
185185
await db.models.pathwayAnalysis.destroy({where: {ident: res.body.ident}});
@@ -216,7 +216,7 @@ describe('/reports/{report}/summary/pathway-analysis', () => {
216216
.auth(username, password)
217217
.type('json')
218218
.attach('pathway', 'test/testData/images/pathwayAnalysisData.svg')
219-
.field('legendId', 2)
219+
.field('legendId', 1)
220220
.expect(HTTP_STATUS.CONFLICT);
221221

222222
// Remove pathway analysis

0 commit comments

Comments
 (0)