mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Retain column sizing in the query tool results grid when the same query is re-run multiple times in a row. Fixes #1971
This commit is contained in:
committed by
Dave Page
parent
678b891ff7
commit
2fddf750e6
27
web/regression/javascript/sqleditor_utils_spec.js
Normal file
27
web/regression/javascript/sqleditor_utils_spec.js
Normal file
@@ -0,0 +1,27 @@
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// pgAdmin 4 - PostgreSQL Tools
|
||||
//
|
||||
// Copyright (C) 2013 - 2017, The pgAdmin Development Team
|
||||
// This software is released under the PostgreSQL Licence
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
define(["sources/sqleditor_utils"],
|
||||
function (SqlEditorUtils) {
|
||||
describe("SqlEditorUtils", function () {
|
||||
|
||||
describe("Generate a random string of size 10", function () {
|
||||
it("returns string of length 10", function () {
|
||||
expect(SqlEditorUtils.epicRandomString(10).length).toEqual(10);
|
||||
});
|
||||
});
|
||||
|
||||
describe("Generate a unique hash for given string", function () {
|
||||
it("returns unique hash", function () {
|
||||
expect(SqlEditorUtils.getHash('select * from test')).toEqual(403379630);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user