mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure CodeMirror always has a non-zero font size. Fixes #3480
This commit is contained in:
committed by
Dave Page
parent
3b862bd70b
commit
2b9c0a63fb
@@ -32,7 +32,7 @@ function (SqlEditorUtils) {
|
||||
describe('Calculate font size of input number passed', function () {
|
||||
it('calcFontSize', function () {
|
||||
expect(SqlEditorUtils.calcFontSize(1.456)).toEqual('1.46em');
|
||||
expect(SqlEditorUtils.calcFontSize()).toEqual('0em');
|
||||
expect(SqlEditorUtils.calcFontSize()).toEqual('1em');
|
||||
expect(SqlEditorUtils.calcFontSize(2)).toEqual('2em');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user