insomnia/app/templating/extensions/__tests__/timestamp-extension.test.js
Gregory Schier 56a86168c4 Nunjucks Variable Editor Modal (#110)
* 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
2017-03-08 22:23:23 -08:00

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));
});