We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5905936 commit a406e73Copy full SHA for a406e73
1 file changed
packages/super-editor/src/tests/export/helpers.test.js
@@ -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