smartpuppeteer/test/test.ts

12 lines
301 B
TypeScript
Raw Normal View History

2019-06-03 20:24:10 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
import * as smartpuppeteer from '../ts/index';
2021-01-08 21:16:25 +00:00
tap.test('first test', async (tools) => {
2019-11-15 17:59:29 +00:00
const headlessBrowser = await smartpuppeteer.getEnvAwareBrowserInstance({
2021-01-08 21:16:25 +00:00
forceNoSandbox: true,
2019-11-15 17:59:29 +00:00
});
2019-06-03 20:48:40 +00:00
await headlessBrowser.close();
2019-06-03 20:24:10 +00:00
});
tap.start();