This repository has been archived on 2026-10-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dotfiles-archive/.atom/packages/atom-material-ui/spec/fonts/set-font-size-spec.js
T
2020-09-07 14:09:19 -07:00

21 lines
580 B
JavaScript

'use babel';
import setFontSize from '../../lib/fonts/set-font-size';
describe('Font size setter', () => {
const root = document.documentElement;
it('should be able to change root element\'s font-size', () => {
expect(root.style.fontSize).toBe('');
setFontSize(22);
expect(root.style.fontSize).toBe('22px');
});
it('should be able to unset root element\'s font-size', () => {
setFontSize(22);
expect(root.style.fontSize).toBe('22px');
setFontSize(null);
expect(root.style.fontSize).toBe('');
});
});