From 84cd8c3e88e7546251c3b05cfe39a094a695d76f Mon Sep 17 00:00:00 2001 From: cosa65 Date: Thu, 9 Nov 2023 13:38:52 -0300 Subject: [PATCH] Update test Signed-off-by: cosa65 --- tests/api.v2/controllers/qcController.test.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/api.v2/controllers/qcController.test.js b/tests/api.v2/controllers/qcController.test.js index 68f36ca09..ba7ae0320 100644 --- a/tests/api.v2/controllers/qcController.test.js +++ b/tests/api.v2/controllers/qcController.test.js @@ -15,9 +15,8 @@ jest.mock('../../../src/utils/parseSNSMessage'); const experimentId = 'experimentId'; const io = 'mockIo'; -const processingConfigUpdate = [{ - name: 'numGenesVsNumUmis', - body: { +const processingConfigUpdate = { + numGenesVsNumUmis: { auto: true, enabled: true, filterSettings: { regressionType: 'linear', regressionTypeSettings: { linear: { 'p.level': 0.001 }, spline: { 'p.level': 0.001 } } }, @@ -28,7 +27,7 @@ const processingConfigUpdate = [{ defaultFilterSettings: { regressionType: 'linear', regressionTypeSettings: { linear: { 'p.level': 0.001 }, spline: { 'p.level': 0.001 } } }, }, }, -}]; +}; const qcResponsePayload = { experimentId, @@ -80,7 +79,7 @@ describe('qcController', () => { const mockReq = { params: { experimentId }, headers: { authorization }, - body: { processingConfig: processingConfigUpdate }, + body: { processingConfigDiff: processingConfigUpdate }, }; await qcController.runQC(mockReq, mockRes); @@ -103,7 +102,7 @@ describe('qcController', () => { const mockReq = { params: { experimentId }, headers: { authorization }, - body: { processingConfig: [] }, + body: { processingConfigDiff: [] }, }; await qcController.runQC(mockReq, mockRes);