mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Don't wait for the database connection before rendering the Query Tool UI, for improved UX. Fixes #4453
In addition, unescape HTML entities in database names in the Query Tool title bar. Fixes #4584
This commit is contained in:
committed by
Dave Page
parent
25f85fe123
commit
234efc3be7
@@ -7,7 +7,7 @@
|
||||
//
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
import { getEpoch, getGCD, getMod, quote_ident, parseFuncParams } from 'sources/utils';
|
||||
import { getEpoch, getGCD, getMod, quote_ident, parseFuncParams, getRandomInt } from 'sources/utils';
|
||||
|
||||
describe('getEpoch', function () {
|
||||
it('should return non zero', function () {
|
||||
@@ -135,3 +135,10 @@ describe('parseFuncParams', function () {
|
||||
expect(parseFuncParams(funcLabel)).toEqual(expectedObj);
|
||||
});
|
||||
});
|
||||
|
||||
describe('getRandomInt', function () {
|
||||
it('is between', function () {
|
||||
let id = getRandomInt(1, 9999999);
|
||||
expect(1 <= id && id <= 9999999).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user