fix dbtest and export production
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
751f79373a
commit
b3eba1c75a
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
@ -1,7 +1,7 @@
|
|||
const app = require('vn-loopback/server/server');
|
||||
const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
|
||||
|
||||
describe('zone zone_getEvents()', () => {
|
||||
fdescribe('zone zone_getEvents()', () => {
|
||||
it(`should return data for a agencyMode with deliveryMethod pickup`, async() => {
|
||||
let stmts = [];
|
||||
let stmt;
|
||||
|
@ -19,14 +19,13 @@ describe('zone zone_getEvents()', () => {
|
|||
]);
|
||||
stmts.push(stmt);
|
||||
let firstResultIndex = stmts.push(stmt) - 1;
|
||||
let secondResultIndex = firstResultIndex + 1;
|
||||
|
||||
stmts.push('ROLLBACK');
|
||||
|
||||
let sql = ParameterizedSQL.join(stmts, ';');
|
||||
let result = await app.models.Ticket.rawStmt(sql);
|
||||
|
||||
let zonesEvents = result[secondResultIndex];
|
||||
let zonesEvents = result[1];
|
||||
|
||||
expect(zonesEvents.length).toBeGreaterThan(0);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue