Skip to content

Commit 61402c5

Browse files
committed
fix unit-tests
1 parent 159a670 commit 61402c5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/unit-tests/org/orgUpdateTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ describe('Testing the PUT /org/:shortname endpoint in Org Controller', () => {
165165
}
166166
req.ctx.repositories = factory
167167
next()
168-
}, orgParams.parsePostParams, orgController.ORG_UPDATE_SINGLE)
168+
}, orgParams.parsePutParams, orgController.ORG_UPDATE_SINGLE)
169169

170170
chai.request(app)
171171
.put(`/org-not-updated-shortname-exists/${orgFixtures.existentOrg.short_name}?new_short_name=cisco`)

test/unit-tests/user/userUpdateTest.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ describe('Testing the PUT /org/:shortname/user/:username endpoint in Org Control
282282
}
283283
req.ctx.repositories = factory
284284
next()
285-
}, orgParams.parsePostParams, orgController.USER_UPDATE_SINGLE)
285+
}, orgParams.parsePutParams, orgController.USER_UPDATE_SINGLE)
286286

287287
chai.request(app)
288288
.put(`/user-not-updated-user-doesnt-exist/${userFixtures.existentOrg.short_name}/${userFixtures.existentUser.username}?org_short_name=${userFixtures.nonExistentOrg.short_name}`)
@@ -412,7 +412,7 @@ describe('Testing the PUT /org/:shortname/user/:username endpoint in Org Control
412412
}
413413
req.ctx.repositories = factory
414414
next()
415-
}, orgParams.parsePostParams, orgController.USER_UPDATE_SINGLE)
415+
}, orgParams.parsePutParams, orgController.USER_UPDATE_SINGLE)
416416

417417
chai.request(app)
418418
.put(`/user-not-updated-admin-changing-org/${userFixtures.existentOrgDummy.short_name}/${userFixtures.userA.username}?org_short_name=${userFixtures.existentOrgDummy.short_name}`)
@@ -546,7 +546,7 @@ describe('Testing the PUT /org/:shortname/user/:username endpoint in Org Control
546546
}
547547
req.ctx.repositories = factory
548548
next()
549-
}, orgParams.parsePostParams, orgController.USER_UPDATE_SINGLE)
549+
}, orgParams.parsePutParams, orgController.USER_UPDATE_SINGLE)
550550

551551
chai.request(app)
552552
.put(`/user-not-updated-cant-update-active-field/${userFixtures.existentOrgDummy.short_name}/${userFixtures.userA.username}?active=true`)

0 commit comments

Comments
 (0)