From b844f8fdb41f0126df0c24223defdb999da9213c Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 17 Oct 2024 07:52:29 +0200 Subject: [PATCH] fix: refs #6242 deleted test --- .../ticket/specs/getTicketProblems.spec.js | 21 ------------------- 1 file changed, 21 deletions(-) delete mode 100644 modules/ticket/back/methods/ticket/specs/getTicketProblems.spec.js diff --git a/modules/ticket/back/methods/ticket/specs/getTicketProblems.spec.js b/modules/ticket/back/methods/ticket/specs/getTicketProblems.spec.js deleted file mode 100644 index 56c3edc1b..000000000 --- a/modules/ticket/back/methods/ticket/specs/getTicketProblems.spec.js +++ /dev/null @@ -1,21 +0,0 @@ -const models = require('vn-loopback/server/server').models; - -fdescribe('ticket getTicketProblems()', () => { - const ctx = {req: {accessToken: 9}}; - it('should return the problems of a ticket', async() => { - const tx = await models.Ticket.beginTransaction({}); - - try { - const options = {transaction: tx}; - - const problems = await models.Ticket.getTicketProblems(ctx, 11, options); - - expect(problems[7].totalProblems).toEqual(3); - - await tx.rollback(); - } catch (e) { - await tx.rollback(); - throw e; - } - }); -});