2
0
mirror of https://github.com/iconify/iconify.git synced 2024-11-14 00:34:04 +00:00
iconify/packages/browser-tests/tests/node.ts

15 lines
296 B
TypeScript
Raw Normal View History

2020-04-28 09:47:35 +00:00
let counter = 0;
/**
* Create node for test
*/
export function getNode(prefix = 'test') {
const id = prefix + '-' + Date.now() + '-' + counter++;
const node = document.createElement('div');
node.setAttribute('id', id);
document.getElementById('debug').appendChild(node);
return node;
}