Migrated tests to jest
Used jest-codemods to migrate, will have to pass everything by hand before we can merge.
This commit is contained in:
2
test6/toggleClass/toggleClass.js
Normal file
2
test6/toggleClass/toggleClass.js
Normal file
@ -0,0 +1,2 @@
|
||||
const toggleClass = (el, className) => el.classList.toggle(className);
|
||||
module.exports = toggleClass;
|
||||
8
test6/toggleClass/toggleClass.test.js
Normal file
8
test6/toggleClass/toggleClass.test.js
Normal file
@ -0,0 +1,8 @@
|
||||
const expect = require('expect');
|
||||
const toggleClass = require('./toggleClass.js');
|
||||
|
||||
test('Testing toggleClass', () => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
expect(typeof toggleClass === 'function').toBeTruthy();
|
||||
});
|
||||
Reference in New Issue
Block a user