smartssr/test/test.ts
2021-08-17 15:42:37 +02:00

26 lines
703 B
TypeScript

import { expect, tap } from '@pushrocks/tapbundle';
import * as smartssr from '../ts/index';
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 (tools) => {
await testSSRInstance.renderPage('https://lossless.com');
});
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);
});
tap.start();