mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
56a86168c4
* Fixed duplication kve bug * Some minor css * Fix modal refs * Got variable modal showing * A bit more * Errors and debounced render * Finished naive editors * Some key value editor fixes * Yet even more one-line fixes * Added some transitions * Small fixes * Added key flattening util
15 lines
351 B
JavaScript
15 lines
351 B
JavaScript
import * as templating from '../../index';
|
|
|
|
function assertTemplate (txt, expected) {
|
|
return async function () {
|
|
const result = await templating.render(txt);
|
|
expect(result).toMatch(expected);
|
|
};
|
|
}
|
|
|
|
const millisRe = /^\d{13}$/;
|
|
|
|
describe('TimestampExtension', () => {
|
|
it('renders basic', assertTemplate('{% timestamp %}', millisRe));
|
|
});
|