initial
This commit is contained in:
20
test/test.nonci.ts
Normal file
20
test/test.nonci.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { tap, expect } from '@push.rocks/tapbundle';
|
||||
|
||||
import * as rendertron from '../ts/index.js';
|
||||
|
||||
let testRendertron: rendertron.Rendertron
|
||||
|
||||
tap.test('should start rendertron', async (tools) => {
|
||||
testRendertron = new rendertron.Rendertron();
|
||||
await testRendertron.start();
|
||||
});
|
||||
|
||||
tap.test('should prerender a page', async () => {
|
||||
await testRendertron.prerenderManager.getPrerenderResultForUrl('https://lossless.com')
|
||||
})
|
||||
|
||||
tap.test('stop rendertron', async () => {
|
||||
await testRendertron.stop();
|
||||
});
|
||||
|
||||
tap.start();
|
Reference in New Issue
Block a user