Skip to content

Commit 3f5414f

Browse files
committed
is this the right path?
1 parent f4cfea6 commit 3f5414f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/unit-tests/org/orgCreateTest.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ describe('Testing the POST /org endpoint in Org Controller', () => {
110110
.post((req, res, next) => {
111111
const factory = {
112112
getOrgRepository: () => { return new OrgCreated() },
113-
getUserRepository: () => { return new NullUserRepo() }
113+
getRegistryOrgRepository: () => { return new OrgCreated() },
114+
getUserRepository: () => { return new NullUserRepo() },
115+
getRegistryUserRepository: () => { return new NullUserRepo() }
114116
}
115117
req.ctx.repositories = factory
116118
next()
@@ -144,7 +146,8 @@ describe('Testing the POST /org endpoint in Org Controller', () => {
144146
app.route('/org-not-created-already-exists')
145147
.post((req, res, next) => {
146148
const factory = {
147-
getOrgRepository: () => { return new OrgNotCreatedAlreadyExists() }
149+
getOrgRepository: () => { return new OrgNotCreatedAlreadyExists() },
150+
getRegistryOrgRepository: () => { return new OrgNotCreatedAlreadyExists() }
148151
}
149152
req.ctx.repositories = factory
150153
next()

0 commit comments

Comments
 (0)