2017-06-08 12:41:56 +01:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
|
//
|
2022-01-04 13:54:25 +05:30
|
|
|
// Copyright (C) 2013 - 2022, The pgAdmin Development Team
|
2017-06-08 12:41:56 +01:00
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
|
//
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2017-06-12 16:55:14 +01:00
|
|
|
define(['sources/sqleditor_utils'],
|
2019-03-14 15:11:16 +00:00
|
|
|
function (SqlEditorUtils) {
|
|
|
|
|
describe('SqlEditorUtils', function () {
|
|
|
|
|
describe('Calculate font size of input number passed', function () {
|
|
|
|
|
it('calcFontSize', function () {
|
|
|
|
|
expect(SqlEditorUtils.calcFontSize(1.456)).toEqual('1.46em');
|
|
|
|
|
expect(SqlEditorUtils.calcFontSize()).toEqual('1em');
|
|
|
|
|
expect(SqlEditorUtils.calcFontSize(2)).toEqual('2em');
|
|
|
|
|
});
|
2018-07-05 11:38:43 +01:00
|
|
|
});
|
2019-03-01 14:55:25 +00:00
|
|
|
});
|
2017-06-08 12:41:56 +01:00
|
|
|
});
|