2026-05-01 16:40:11 +00:00
|
|
|
import { tap } from '@git.zone/tstest/tapbundle';
|
|
|
|
|
import * as smartssr from '../ts/index.js';
|
2020-02-12 21:31:22 +00:00
|
|
|
|
|
|
|
|
let testSSRInstance: smartssr.SmartSSR;
|
|
|
|
|
|
|
|
|
|
tap.test('should create a valid smartssr instance', async () => {
|
2020-08-06 15:13:38 +00:00
|
|
|
testSSRInstance = new smartssr.SmartSSR({
|
2020-08-06 15:17:01 +00:00
|
|
|
debug: true,
|
2020-08-06 15:13:38 +00:00
|
|
|
});
|
2020-02-12 21:31:22 +00:00
|
|
|
});
|
|
|
|
|
|
2026-05-01 16:40:11 +00:00
|
|
|
tap.test('should render central.eu', async () => {
|
2025-01-01 07:18:58 +01:00
|
|
|
const renderedPage = await testSSRInstance.renderPage('https://lossless.com');
|
|
|
|
|
console.log(renderedPage);
|
2020-02-12 21:31:22 +00:00
|
|
|
});
|
|
|
|
|
|
2021-08-17 15:42:37 +02:00
|
|
|
tap.test('should render lossless.com', async () => {
|
2020-02-12 21:31:22 +00:00
|
|
|
await testSSRInstance.renderPage('https://lossless.com');
|
|
|
|
|
});
|
|
|
|
|
|
2021-08-17 15:42:37 +02:00
|
|
|
tap.test('should render https://lossless.gmbh', async () => {
|
2020-02-25 07:48:54 +00:00
|
|
|
const renderedPage = await testSSRInstance.renderPage('https://lossless.gmbh');
|
2021-05-19 11:32:12 +00:00
|
|
|
console.log(renderedPage);
|
2020-02-12 21:31:22 +00:00
|
|
|
});
|
|
|
|
|
|
2026-05-01 16:40:11 +00:00
|
|
|
export default tap.start();
|