mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
copied from master
This commit is contained in:
@@ -132,17 +132,14 @@ describe('DB Import/export', () => {
|
|||||||
|
|
||||||
for (const check of engine.dumpChecks || []) {
|
for (const check of engine.dumpChecks || []) {
|
||||||
const res = await driver.query(conn, check.sql);
|
const res = await driver.query(conn, check.sql);
|
||||||
const cnt = parseInt(res.rows[0].res.toString());
|
expect(res.rows[0].res.toString()).toEqual(check.res);
|
||||||
expect(cnt).toEqual(parseInt(check.res));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const res1 = await driver.query(conn, `select count(*) as cnt from t1`);
|
// const res1 = await driver.query(conn, `select count(*) as cnt from t1`);
|
||||||
const cnt1 = parseInt(res1.rows[0].cnt.toString());
|
// expect(res1.rows[0].cnt.toString()).toEqual('6');
|
||||||
expect(cnt1).toEqual(6);
|
|
||||||
|
|
||||||
const res2 = await driver.query(conn, `select count(*) as cnt from t2`);
|
// const res2 = await driver.query(conn, `select count(*) as cnt from t2`);
|
||||||
const cnt2 = parseInt(res2.rows[0].cnt.toString());
|
// expect(res2.rows[0].cnt.toString()).toEqual('6');
|
||||||
expect(cnt2).toEqual(6);
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user