in scripts/testHarness.js [57:68]
async load(id) {
let match;
if (id === '/') {
return readFile('./harness/index.html', 'utf8');
} else if (id.match(/^\/atoms\/[^\/]+\/$/)) { // match '/atoms/{atom}/'
return readFile('./harness/templates.html', 'utf8');
} else if (match = id.match(/^\/atoms\/[^\/]+\/([^\/]+)\/$/)) { // match '/atoms/{atom}/{template}/'
return readFile(`./harness/templates/${match[1]}.html`, 'utf8');
}
return null;
},