Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

was added unit tests to user, project,categories,extensions,twoFactorAuth and webHook controllers

YakovAkk6b5a321ff90a
diff --git a/src/marketplace/categories/categories.controller.spec.ts b/src/marketplace/categories/categories.controller.spec.ts
index b0802b800..d687828f1 100644
--- a/src/marketplace/categories/categories.controller.spec.ts
+++ b/src/marketplace/categories/categories.controller.spec.ts
@@ -36,5 +36,22 @@ describe('CategoriesController', () => {
it('should be defined', () => {
expect(controller).toBeDefined()
})
+
+ it('createCategory should be defined', () => {
+ expect(controller.createCategory).toBeDefined()
+ })
+ it('deleteCategory should be defined', () => {
+ expect(controller.deleteCategory).toBeDefined()
+ })
+ it('getAllCategories should be defined', () => {
+ expect(controller.getAllCategories).toBeDefined()
+ })
+
+ it('getCategory should be defined', () => {
+ expect(controller.getCategory).toBeDefined()
+ })
+ it('updateCategory should be defined', () => {
+ expect(controller.updateCategory).toBeDefined()
+ })
})
})
diff --git a/src/marketplace/extensions/extensions.controller.spec.ts b/src/marketplace/extensions/extensions.controller.spec.ts
index 50ac13bef..a499e206b 100644
--- a/src/marketplace/extensions/extensions.controller.spec.ts
+++ b/src/marketplace/extensions/extensions.controller.spec.ts
@@ -33,5 +33,21 @@ describe('ExtensionsController', () => {
it('should be defined', () => {
expect(controller).toBeDefined()
})
+ it('createExtension should be defined', () => {
+ expect(controller.createExtension).toBeDefined()
+ })
+ it('deleteExtension should be defined', () => {
+ expect(controller.deleteExtension).toBeDefined()
+ })
+ it('getAllExtension should be defined', () => {
+ expect(controller.getExtension).toBeDefined()
+ })
+
+ it('getExtension should be defined', () => {
+ expect(controller.getExtension).toBeDefined()
+ })
+ it('updateExtension should be defined', () => {
+ expect(controller.updateExtension).toBeDefined()
+ })
})
})
diff --git a/src/project/project.controller.spec.ts b/src/project/project.controller.spec.ts
index 0a083dd67..8133c3ac1 100644
--- a/src/project/project.controller.spec.ts
+++ b/src/project/project.controller.spec.ts
@@ -52,5 +52,56 @@ describe('ProjectController', () => {
it('should be defined', () => {
expect(controller).toBeDefined()
})
+
+ it('acceptShare should be defined', () => {
+ expect(controller.acceptShare).toBeDefined()
+ })
+ it('create should be defined', () => {
+ expect(controller.create).toBeDefined()
+ })
+ it('createForAdmin should be defined', () => {
+ expect(controller.createForAdmin).toBeDefined()
+ })
+ it('delete should be defined', () => {
+ expect(controller.delete).toBeDefined()
+ })
+ it('deleteShare should be defined', () => {
+ expect(controller.deleteShare).toBeDefined()
+ })
+ it('get should be defined', () => {
+ expect(controller.get).toBeDefined()
+ })
+
+ it('getAllProjects should be defined', () => {
+ expect(controller.getAllProjects).toBeDefined()
+ })
+
+ it('getOne should be defined', () => {
+ expect(controller.getOne).toBeDefined()
+ })
+
+ it('getShared should be defined', () => {
+ expect(controller.getShared).toBeDefined()
+ })
+
+ it('getUserProject should be defined', () => {
+ expect(controller.getUserProject).toBeDefined()
+ })
+
+ it('reset should be defined', () => {
+ expect(controller.reset).toBeDefined()
+ })
+
+ it('share should be defined', () => {
+ expect(controller.share).toBeDefined()
+ })
+
+ it('update should be defined', () => {
+ expect(controller.update).toBeDefined()
+ })
+
+ it('updateShare should be defined', () => {
+ expect(controller.updateShare).toBeDefined()
+ })
})
})
diff --git a/src/twoFactorAuth/twoFactorAuth.controller.spec.ts b/src/twoFactorAuth/twoFactorAuth.controller.spec.ts
index 8e08dc31d..93407c637 100644
--- a/src/twoFactorAuth/twoFactorAuth.controller.spec.ts
+++ b/src/twoFactorAuth/twoFactorAuth.controller.spec.ts
@@ -35,5 +35,21 @@ describe('TwoFactorAuthController', () => {
it('should be defined', () => {
expect(controller).toBeDefined()
})
+
+ it('authenticate should be defined', () => {
+ expect(controller.authenticate).toBeDefined()
+ })
+
+ it('register should be defined', () => {
+ expect(controller.register).toBeDefined()
+ })
+
+ it('turnOffTwoFactorAuthentication should be defined', () => {
+ expect(controller.turnOffTwoFactorAuthentication).toBeDefined()
+ })
+
+ it('turnOnTwoFactorAuthentication should be defined', () => {
+ expect(controller.turnOnTwoFactorAuthentication).toBeDefined()
+ })
})
})
diff --git a/src/user/user.controller.spec.ts b/src/user/user.controller.spec.ts
index 4bfd9b93e..04cabdb13 100644
--- a/src/user/user.controller.spec.ts
+++ b/src/user/user.controller.spec.ts
@@ -54,5 +54,56 @@ describe('UserController', () => {
it('should be defined', () => {
expect(controller).toBeDefined()
})
+
+ it('acceptShare should be defined', () => {
+ expect(controller.acceptShare).toBeDefined()
+ })
+
+ it('create should be defined', () => {
+ expect(controller.create).toBeDefined()
+ })
+
+ it('delete should be defined', () => {
+ expect(controller.delete).toBeDefined()
+ })
+ it('deleteApiKey should be defined', () => {
+ expect(controller.deleteApiKey).toBeDefined()
+ })
+
+ it('deleteSelf should be defined', () => {
+ expect(controller.deleteSelf).toBeDefined()
+ })
+
+ it('deleteShare should be defined', () => {
+ expect(controller.deleteShare).toBeDefined()
+ })
+
+ it('exportUserData should be defined', () => {
+ expect(controller.exportUserData).toBeDefined()
+ })
+
+ it('generateApiKey should be defined', () => {
+ expect(controller.generateApiKey).toBeDefined()
+ })
+
+ it('get should be defined', () => {
+ expect(controller.get).toBeDefined()
+ })
+
+ it('searchUsers should be defined', () => {
+ expect(controller.searchUsers).toBeDefined()
+ })
+
+ it('sendEmailConfirmation should be defined', () => {
+ expect(controller.sendEmailConfirmation).toBeDefined()
+ })
+
+ it('update should be defined', () => {
+ expect(controller.update).toBeDefined()
+ })
+
+ it('updateCurrentUser should be defined', () => {
+ expect(controller.updateCurrentUser).toBeDefined()
+ })
})
})
diff --git a/src/webhook/webhook.controller.spec.ts b/src/webhook/webhook.controller.spec.ts
index 3ab24d807..82ceadd76 100644
--- a/src/webhook/webhook.controller.spec.ts
+++ b/src/webhook/webhook.controller.spec.ts
@@ -30,5 +30,9 @@ describe('WebhookController', () => {
it('should be defined', () => {
expect(controller).toBeDefined()
})
+
+ it('paddleWebhook should be defined', () => {
+ expect(controller.paddleWebhook).toBeDefined()
+ })
})
})