This repository has been archived on 2019-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
2017-12-05 00:13:47 +01:00

11 lines
321 B
JavaScript

export default function appendNewRef(id, text, container) {
const jasmineWrapper = document.getElementById('jasmineWrapper');
const ref = document.createElement('div');
ref.id = id;
ref.className = 'ref';
ref.textContent = text || 'reference';
(container || jasmineWrapper).appendChild(ref);
return ref;
}