mirror of
https://github.com/modernweb-dev/rocket.git
synced 2026-05-08 15:55:55 +00:00
24 lines
582 B
JavaScript
24 lines
582 B
JavaScript
import chai from 'chai';
|
|
import { setupTestEngine } from './test-helpers.js';
|
|
|
|
const { expect } = chai;
|
|
|
|
describe('Components', () => {
|
|
it('01: loads components server side by default', async () => {
|
|
const { build, readOutput } = await setupTestEngine(
|
|
'fixtures/14-components/01-load-server-side/docs',
|
|
);
|
|
await build();
|
|
|
|
expect(readOutput('index.html')).to.equal(
|
|
[
|
|
'<p>',
|
|
' <my-el',
|
|
' ><template shadowroot="open"><p>Hello World</p></template></my-el',
|
|
' >',
|
|
'</p>',
|
|
].join('\n'),
|
|
);
|
|
});
|
|
});
|