mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Add linting support, and, well, lint.
This commit is contained in:
@@ -7,18 +7,18 @@
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
define(["sources/sqleditor_utils"],
|
||||
define(['sources/sqleditor_utils'],
|
||||
function (SqlEditorUtils) {
|
||||
describe("SqlEditorUtils", function () {
|
||||
describe('SqlEditorUtils', function () {
|
||||
|
||||
describe("Generate a random string of size 10", function () {
|
||||
it("returns string of length 10", 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 () {
|
||||
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