34 lines
909 B
TypeScript
34 lines
909 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 start the smartssr instance', async () => {
|
|
await testSSRInstance.start();
|
|
});
|
|
|
|
tap.test('should render central.eu', async (tools) => {
|
|
await testSSRInstance.renderPage('https://lossless.com');
|
|
});
|
|
|
|
tap.skip.test('should render lossless.com', async () => {
|
|
await testSSRInstance.renderPage('https://lossless.com');
|
|
});
|
|
|
|
tap.skip.test('should render https://lossless.gmbh', async () => {
|
|
const renderedPage = await testSSRInstance.renderPage('https://lossless.gmbh');
|
|
console.log(renderedPage);
|
|
});
|
|
|
|
tap.test('should stop the smartssr instance', async () => {
|
|
await testSSRInstance.stop();
|
|
});
|
|
|
|
tap.start();
|