Added throw error
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
985bcc61b1
commit
6da84e46c1
|
@ -36,6 +36,7 @@ describe('claimBeginning', () => {
|
||||||
await tx.rollback();
|
await tx.rollback();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
await tx.rollback();
|
await tx.rollback();
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const app = require('vn-loopback/server/server');
|
const app = require('vn-loopback/server/server');
|
||||||
const LoopBackContext = require('loopback-context');
|
const LoopBackContext = require('loopback-context');
|
||||||
|
|
||||||
describe('entry import()', () => {
|
fdescribe('entry import()', () => {
|
||||||
const buyerId = 35;
|
const buyerId = 35;
|
||||||
const companyId = 442;
|
const companyId = 442;
|
||||||
const travelId = 1;
|
const travelId = 1;
|
||||||
|
@ -64,7 +64,7 @@ describe('entry import()', () => {
|
||||||
|
|
||||||
await app.models.Entry.importBuys(ctx, newEntry.id, options);
|
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({
|
const entryBuys = await app.models.Buy.find({
|
||||||
where: {entryFk: newEntry.id}
|
where: {entryFk: newEntry.id}
|
||||||
}, options);
|
}, options);
|
||||||
|
@ -76,6 +76,7 @@ describe('entry import()', () => {
|
||||||
await tx.rollback();
|
await tx.rollback();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
await tx.rollback();
|
await tx.rollback();
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue