Files
divkit/client/web/divkit/tests/utils/correctAlignmentVertical.test.ts
T
2022-11-25 13:30:16 +03:00

13 lines
608 B
TypeScript

import { correctAlignmentVertical } from '../../src/utils/correctAlignmentVertical';
describe('correctAlignmentVertical', () => {
test('simple', () => {
expect(correctAlignmentVertical(undefined, 'top')).toBe('top');
expect(correctAlignmentVertical('top', 'center')).toBe('top');
expect(correctAlignmentVertical('center', 'top')).toBe('center');
expect(correctAlignmentVertical('bottom', 'top')).toBe('bottom');
expect(correctAlignmentVertical('baseline', 'top')).toBe('baseline');
expect(correctAlignmentVertical('smth', 'top')).toBe('top');
});
});