api<\/span>/);
assert.equal(calls[0].args[3], 1);
assert.equal(calls[1].args[2].sources, apiSources);
});
test('thumbnail time/date uses the editor renderer to expand current-time tokens', () => {
const registry = {
get(type) {
return type === 'time-date' ? loadEditorTimeDateModule() : null;
}
};
const html = render({
regions: [{
id: 4,
region_key: 'clock',
region_type: 'time-date',
x: 0,
y: 0,
width: 320,
height: 80,
content: { value: '{{hh}}:{{mm}}', timezone: 'UTC' }
}]
}, registry);
assert.match(html, /]*>\d{2}:\d{2}<\/div>/);
});