ran npm run tdd & generated TDD
This commit is contained in:
5
test/createElement/createElement.js
Normal file
5
test/createElement/createElement.js
Normal file
@ -0,0 +1,5 @@
|
||||
module.exports = str => {
|
||||
const el = document.createElement('div');
|
||||
el.innerHTML = str;
|
||||
return el.firstElementChild;
|
||||
};
|
||||
Reference in New Issue
Block a user