mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
13 lines
608 B
TypeScript
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');
|
|
});
|
|
});
|