Skip to content

Commit a406e73

Browse files
authored
test: tests for getTextIndentExportValue (#784)
1 parent 5905936 commit a406e73

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { getTextIndentExportValue } from '../../core/super-converter/helpers.js';
2+
3+
describe('Export helpers', () => {
4+
it('getTextIndentExportValue returns correct value for every case', () => {
5+
const pxValue = getTextIndentExportValue('20');
6+
const inchValue = getTextIndentExportValue('2in');
7+
const ptValue = getTextIndentExportValue('20pt');
8+
9+
expect(pxValue).toBe(300);
10+
expect(inchValue).toBe(2880);
11+
expect(ptValue).toBe(400);
12+
});
13+
});

0 commit comments

Comments
 (0)