mirror of
https://github.com/modernweb-dev/rocket.git
synced 2026-05-08 08:51:23 +00:00
21 lines
601 B
JavaScript
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'));
|
|
});
|
|
});
|