refs #5858 test: bad test calls
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
db06620d7c
commit
e3379b42a1
|
@ -21,19 +21,11 @@ describe('zone toggleIsIncluded()', () => {
|
||||||
const tx = await models.Zone.beginTransaction({});
|
const tx = await models.Zone.beginTransaction({});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let toCheck = await conn.executeStmt({sql: ' SELECT * FROM zoneIncludedCheck'});
|
|
||||||
|
|
||||||
expect(toCheck.length).toEqual(0);
|
|
||||||
const options = {transaction: tx};
|
const options = {transaction: tx};
|
||||||
|
|
||||||
let result = await models.Zone.toggleIsIncluded(1, 20, true, options);
|
let result = await models.Zone.toggleIsIncluded(1, 20, true, options);
|
||||||
|
|
||||||
expect(result.isIncluded).toBeTrue();
|
expect(result.isIncluded).toBeTrue();
|
||||||
toCheck = await conn.executeStmt({sql: ' SELECT * FROM zoneIncludedCheck'});
|
|
||||||
|
|
||||||
expect(toCheck.length).not.toEqual(1);
|
|
||||||
|
|
||||||
await conn.executeStmt({sql: 'CALL vn.zoneIncluded_checkCollisions(?, ? )', params: [0, 0]});
|
|
||||||
|
|
||||||
await tx.rollback();
|
await tx.rollback();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue