razer should be a-ok

This commit is contained in:
Chris Nutter committed 2020-09-07 14:09:19 -07:00
1 parent 7fd47915ae
commit 7693697990
142 files changed
+22252

No files matched your search

@@ -0,0 +1,20 @@
'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('');
});
});