From a9a20758bd9480a2f05450383da43078e7fa76e8 Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 26 Oct 2022 13:33:02 +0200 Subject: [PATCH] remove unnecesary --- back/models/specs/account.spec.js | 20 -------------------- back/views/verify.ejs | 3 --- back/views/verifyES.ejs | 3 --- 3 files changed, 26 deletions(-) delete mode 100644 back/views/verify.ejs delete mode 100644 back/views/verifyES.ejs diff --git a/back/models/specs/account.spec.js b/back/models/specs/account.spec.js index 81496a15f..f31c81b75 100644 --- a/back/models/specs/account.spec.js +++ b/back/models/specs/account.spec.js @@ -1,26 +1,6 @@ const models = require('vn-loopback/server/server').models; -const LoopBackContext = require('loopback-context'); describe('loopback model Account', () => { - const userId = 1105; - const activeCtx = { - accessToken: {userId: userId}, - http: { - req: { - headers: {origin: 'http://localhost'}, - [`__`]: value => { - return value; - } - } - } - }; - - beforeEach(() => { - spyOn(LoopBackContext, 'getCurrentContext').and.returnValue({ - active: activeCtx - }); - }); - it('should return true if the user has the given role', async() => { let result = await models.Account.hasRole(1, 'employee'); diff --git a/back/views/verify.ejs b/back/views/verify.ejs deleted file mode 100644 index 90a434463..000000000 --- a/back/views/verify.ejs +++ /dev/null @@ -1,3 +0,0 @@ -

- Click here to confirm your email address. -

diff --git a/back/views/verifyES.ejs b/back/views/verifyES.ejs deleted file mode 100644 index 90a434463..000000000 --- a/back/views/verifyES.ejs +++ /dev/null @@ -1,3 +0,0 @@ -

- Click here to confirm your email address. -