removed deprecated logic test
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
57bc9f1132
commit
163bf2464b
|
@ -104,56 +104,6 @@ describe('ticket ticketCreateWithUser()', () => {
|
||||||
expect(thirdTicketObservation.description).toEqual('care with the dog');
|
expect(thirdTicketObservation.description).toEqual('care with the dog');
|
||||||
});
|
});
|
||||||
|
|
||||||
// it('should confirm the procedure sets companyFk as Tenerife if vProvinceName is SANTA CRUZ DE TENERIFE', async() => {
|
|
||||||
// let stmts = [];
|
|
||||||
// let stmt;
|
|
||||||
|
|
||||||
// stmts.push('START TRANSACTION');
|
|
||||||
|
|
||||||
// let params = {
|
|
||||||
// clientFk: 101,
|
|
||||||
// shipped: today,
|
|
||||||
// warehouseFk: 1,
|
|
||||||
// companyFk: 442,
|
|
||||||
// addressFk: 1,
|
|
||||||
// agencyModeFk: 2,
|
|
||||||
// routeFk: null,
|
|
||||||
// landed: today,
|
|
||||||
// userId: 18
|
|
||||||
// };
|
|
||||||
|
|
||||||
// let tenerife = 1381;
|
|
||||||
|
|
||||||
// stmt = new ParameterizedSQL(`UPDATE province p, client c SET p.name ='SANTA CRUZ DE TENERIFE' WHERE p.id = c.provinceFk AND c.id = ?`, [
|
|
||||||
// params.clientFk,
|
|
||||||
// ]);
|
|
||||||
// stmts.push(stmt);
|
|
||||||
|
|
||||||
// stmt = new ParameterizedSQL(`CALL vn.ticketCreateWithUser(?, ?, ?, ?, ?, ?, ?, ?, ?, @newTicketId)`, [
|
|
||||||
// params.clientFk,
|
|
||||||
// params.shipped,
|
|
||||||
// params.warehouseFk,
|
|
||||||
// params.companyFk,
|
|
||||||
// params.addressFk,
|
|
||||||
// params.agencyModeFk,
|
|
||||||
// params.routeFk,
|
|
||||||
// params.landed,
|
|
||||||
// params.userId
|
|
||||||
// ]);
|
|
||||||
// stmts.push(stmt);
|
|
||||||
|
|
||||||
// let ticketCompanyIndex = stmts.push(`SELECT companyFk FROM vn.ticket WHERE id = @newTicketId`) - 1;
|
|
||||||
|
|
||||||
// stmts.push('ROLLBACK');
|
|
||||||
|
|
||||||
// let sql = ParameterizedSQL.join(stmts, ';');
|
|
||||||
// let result = await app.models.Ticket.rawStmt(sql);
|
|
||||||
|
|
||||||
// let ticket = result[ticketCompanyIndex][0];
|
|
||||||
|
|
||||||
// expect(ticket.companyFk).toEqual(tenerife);
|
|
||||||
// });
|
|
||||||
|
|
||||||
it('should confirm the procedure sets address if it received it null', async() => {
|
it('should confirm the procedure sets address if it received it null', async() => {
|
||||||
let stmts = [];
|
let stmts = [];
|
||||||
let stmt;
|
let stmt;
|
||||||
|
|
Loading…
Reference in New Issue