Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
2
test/hasClass/hasClass.js
Normal file
2
test/hasClass/hasClass.js
Normal file
@ -0,0 +1,2 @@
|
||||
const hasClass = (el, className) => el.classList.contains(className);
|
||||
module.exports = hasClass;
|
||||
8
test/hasClass/hasClass.test.js
Normal file
8
test/hasClass/hasClass.test.js
Normal file
@ -0,0 +1,8 @@
|
||||
const expect = require('expect');
|
||||
const hasClass = require('./hasClass.js');
|
||||
|
||||
|
||||
test('hasClass is a Function', () => {
|
||||
expect(hasClass).toBeInstanceOf(Function);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user