Archived
razer should be a-ok
This commit is contained in:
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('');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user