copied from master

This commit is contained in:
SPRINX0\prochazka
2025-04-24 13:04:16 +02:00
parent a566fb3988
commit e8b11bd42a

View File

@@ -132,17 +132,14 @@ describe('DB Import/export', () => {
for (const check of engine.dumpChecks || []) {
const res = await driver.query(conn, check.sql);
const cnt = parseInt(res.rows[0].res.toString());
expect(cnt).toEqual(parseInt(check.res));
expect(res.rows[0].res.toString()).toEqual(check.res);
}
const res1 = await driver.query(conn, `select count(*) as cnt from t1`);
const cnt1 = parseInt(res1.rows[0].cnt.toString());
expect(cnt1).toEqual(6);
// const res1 = await driver.query(conn, `select count(*) as cnt from t1`);
// expect(res1.rows[0].cnt.toString()).toEqual('6');
const res2 = await driver.query(conn, `select count(*) as cnt from t2`);
const cnt2 = parseInt(res2.rows[0].cnt.toString());
expect(cnt2).toEqual(6);
// const res2 = await driver.query(conn, `select count(*) as cnt from t2`);
// expect(res2.rows[0].cnt.toString()).toEqual('6');
})
);
}