Added throw error
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-03-22 10:20:04 +01:00
parent 985bcc61b1
commit 6da84e46c1
2 changed files with 4 additions and 2 deletions

View File

@ -36,6 +36,7 @@ describe('claimBeginning', () => {
await tx.rollback();
} catch (e) {
await tx.rollback();
throw e;
}
});
});

View File

@ -1,7 +1,7 @@
const app = require('vn-loopback/server/server');
const LoopBackContext = require('loopback-context');
describe('entry import()', () => {
fdescribe('entry import()', () => {
const buyerId = 35;
const companyId = 442;
const travelId = 1;
@ -64,7 +64,7 @@ describe('entry import()', () => {
await app.models.Entry.importBuys(ctx, newEntry.id, options);
const updatedEntry = await app.models.Entry.findById(newEntry.id, null, options);
const updatedEntry = await app.models.Entry.findById(null, null, options);
const entryBuys = await app.models.Buy.find({
where: {entryFk: newEntry.id}
}, options);
@ -76,6 +76,7 @@ describe('entry import()', () => {
await tx.rollback();
} catch (e) {
await tx.rollback();
throw e;
}
});
});