mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix keyboard navigation in "inner" tabsets such as the Query Tool and Debugger. Fixes #4195
This commit is contained in:
committed by
Dave Page
parent
321b445a7e
commit
f561c0cee6
@@ -7,7 +7,7 @@
|
||||
//
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
import { getEpoch, getGCD } from 'sources/utils';
|
||||
import { getEpoch, getGCD, getMod } from 'sources/utils';
|
||||
|
||||
describe('getEpoch', function () {
|
||||
it('should return non zero', function () {
|
||||
@@ -33,3 +33,21 @@ describe('getGCD', function () {
|
||||
expect(getGCD(nos)).toEqual(3);
|
||||
});
|
||||
});
|
||||
|
||||
describe('getMod', function () {
|
||||
it('complete divisible', function () {
|
||||
expect(getMod(5,5)).toEqual(0);
|
||||
});
|
||||
|
||||
it('incomplete divisible less divisor', function () {
|
||||
expect(getMod(7,5)).toEqual(2);
|
||||
});
|
||||
|
||||
it('incomplete divisible greater divisor', function () {
|
||||
expect(getMod(5,7)).toEqual(5);
|
||||
});
|
||||
|
||||
it('negative number', function () {
|
||||
expect(getMod(-7,5)).toEqual(3);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user