Skip to content

Commit c277318

Browse files
committed
Fixed all the type errors
1 parent 3f5414f commit c277318

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/unit-tests/org/orgCreateTest.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ describe('Testing the POST /org endpoint in Org Controller', () => {
181181
.post((req, res, next) => {
182182
const factory = {
183183
getOrgRepository: () => { return new OrgCreated() },
184-
getUserRepository: () => { return new NullUserRepo() }
184+
getUserRepository: () => { return new NullUserRepo() },
185+
getRegistryOrgRepository: () => { return new OrgCreated() }
185186
}
186187
req.ctx.repositories = factory
187188
next()
@@ -208,6 +209,7 @@ describe('Testing the POST /org endpoint in Org Controller', () => {
208209
.post((req, res, next) => {
209210
const factory = {
210211
getOrgRepository: () => { return new OrgCreatedWhenRolesDefined() },
212+
getRegistryOrgRepository: () => { return new OrgCreatedWhenRolesDefined() },
211213
getUserRepository: () => { return new NullUserRepo() }
212214
}
213215
req.ctx.repositories = factory
@@ -239,6 +241,7 @@ describe('Testing the POST /org endpoint in Org Controller', () => {
239241
.post((req, res, next) => {
240242
const factory = {
241243
getOrgRepository: () => { return new OrgCreated() },
244+
getRegistryOrgRepository: () => { return new OrgCreated() },
242245
getUserRepository: () => { return new NullUserRepo() }
243246
}
244247
req.ctx.repositories = factory
@@ -277,6 +280,7 @@ describe('Testing the POST /org endpoint in Org Controller', () => {
277280
.post((req, res, next) => {
278281
const factory = {
279282
getOrgRepository: () => { return new OrgCreatedIdQuotaNullUndefined() },
283+
getRegistryOrgRepository: () => { return new OrgCreatedIdQuotaNullUndefined() },
280284
getUserRepository: () => { return new NullUserRepo() }
281285
}
282286
req.ctx.repositories = factory
@@ -309,6 +313,7 @@ describe('Testing the POST /org endpoint in Org Controller', () => {
309313
.post((req, res, next) => {
310314
const factory = {
311315
getOrgRepository: () => { return new OrgCreatedIdQuotaNullUndefined() },
316+
getRegistryOrgRepository: () => { return new OrgCreatedIdQuotaNullUndefined() },
312317
getUserRepository: () => { return new NullUserRepo() }
313318
}
314319
req.ctx.repositories = factory

0 commit comments

Comments
 (0)