diff --git a/packages/core/helper-plugin/lib/src/utils/pxToRem/tests/pxToRem.test.js b/packages/core/helper-plugin/lib/src/utils/pxToRem/tests/pxToRem.test.js new file mode 100644 index 0000000000..831e54df36 --- /dev/null +++ b/packages/core/helper-plugin/lib/src/utils/pxToRem/tests/pxToRem.test.js @@ -0,0 +1,17 @@ +import pxToRem from '../../pxToRem'; + +describe('HELPER_PLUGIN | utils | pxToRem', () => { + it('should return 2rem if data is 32', () => { + const data = 32; + const expected = '2rem'; + + expect(pxToRem(data)).toEqual(expected); + }); + + it('should return 1rem if data is 16', () => { + const data = 16; + const expected = '1rem'; + + expect(pxToRem(data)).toEqual(expected); + }); +});