mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-26 13:21:42 +03:00
10 lines
391 B
JavaScript
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();
|
|
});
|