Files
smartssr/test/test.node.ts
T

27 lines
764 B
TypeScript

import { tap } from '@git.zone/tstest/tapbundle';
import * as smartssr from '../ts/index.js';
let testSSRInstance: smartssr.SmartSSR;
tap.test('should create a valid smartssr instance', async () => {
testSSRInstance = new smartssr.SmartSSR({
debug: true,
});
});
tap.test('should render central.eu', async () => {
const renderedPage = await testSSRInstance.renderPage('https://lossless.com');
console.log(renderedPage);
});
tap.test('should render lossless.com', async () => {
await testSSRInstance.renderPage('https://lossless.com');
});
tap.test('should render https://lossless.gmbh', async () => {
const renderedPage = await testSSRInstance.renderPage('https://lossless.gmbh');
console.log(renderedPage);
});
export default tap.start();