Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
Signed-off-by: cosa65 <[email protected]>
  • Loading branch information
cosa65 committed Nov 9, 2023
1 parent bfbb1fe commit 84cd8c3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/api.v2/controllers/qcController.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 } } },
Expand All @@ -28,7 +27,7 @@ const processingConfigUpdate = [{
defaultFilterSettings: { regressionType: 'linear', regressionTypeSettings: { linear: { 'p.level': 0.001 }, spline: { 'p.level': 0.001 } } },
},
},
}];
};

const qcResponsePayload = {
experimentId,
Expand Down Expand Up @@ -80,7 +79,7 @@ describe('qcController', () => {
const mockReq = {
params: { experimentId },
headers: { authorization },
body: { processingConfig: processingConfigUpdate },
body: { processingConfigDiff: processingConfigUpdate },
};

await qcController.runQC(mockReq, mockRes);
Expand All @@ -103,7 +102,7 @@ describe('qcController', () => {
const mockReq = {
params: { experimentId },
headers: { authorization },
body: { processingConfig: [] },
body: { processingConfigDiff: [] },
};

await qcController.runQC(mockReq, mockRes);
Expand Down

0 comments on commit 84cd8c3

Please sign in to comment.