Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
2
test/getStyle/getStyle.js
Normal file
2
test/getStyle/getStyle.js
Normal file
@ -0,0 +1,2 @@
|
||||
const getStyle = (el, ruleName) => getComputedStyle(el)[ruleName];
|
||||
module.exports = getStyle;
|
||||
10
test/getStyle/getStyle.test.js
Normal file
10
test/getStyle/getStyle.test.js
Normal file
@ -0,0 +1,10 @@
|
||||
const expect = require('expect');
|
||||
const getStyle = require('./getStyle.js');
|
||||
|
||||
|
||||
test('getStyle is a Function', () => {
|
||||
expect(getStyle).toBeInstanceOf(Function);
|
||||
});
|
||||
t.pass('Tested by @chalarangelo on 16/02/2018');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user