fix: refs #6242 deleted test
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jon Elias 2024-10-17 07:52:29 +02:00
parent b5284c740b
commit b844f8fdb4
1 changed files with 0 additions and 21 deletions

View File

@ -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;
}
});
});