mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 19:36:20 +00:00
add test of pxToRem
This commit is contained in:
parent
f80b89fe69
commit
77fc12b75c
@ -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);
|
||||
});
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user