Files
rocket/packages/engine/test-node/03d-format-various.test.js
Thomas Allmer e17671c448 feat: engine
2022-03-09 18:11:27 +01:00

21 lines
601 B
JavaScript

import chai from 'chai';
import { setupTestEngine } from './test-helpers.js';
const { expect } = chai;
describe('Formats', () => {
it('javascript', async () => {
const { build, readOutput } = await setupTestEngine('fixtures/03d-format-various/01-js-single');
await build();
expect(readOutput('index.html')).to.equal('<h1>Home index.rocket.js</h1>');
});
it('xml', async () => {
const { build, readOutput } = await setupTestEngine('fixtures/03d-format-various/04-xml');
await build();
expect(readOutput('sitemap.xml')).to.equal(['<xml></xml>'].join('\n'));
});
});