elm-pages-v3-beta/tests/generated-files.test.js
2020-05-17 21:21:55 +02:00

10 lines
391 B
JavaScript

const { elmPagesCliFile, elmPagesUiFile } = require("../generator/src/elm-file-constants.js");
const generateRecords = require("../generator/src/generate-records.js");
test('generate UI file', async () => {
const staticRoutes = await generateRecords();
global.builtAt = new Date("Sun, 17 May 2020 16:53:22 GMT");
expect(elmPagesUiFile(staticRoutes, [])).toMatchSnapshot();
});