Files
OverlayScrollbars/packages/overlayscrollbars/tests/puppeteer/Environment/index.test.ts
T
2020-10-31 16:19:12 +01:00

16 lines
425 B
TypeScript

import { Environment } from 'environment';
import url from './.build/build.html';
describe('Environment', () => {
beforeAll(async () => {
await page.goto(url);
});
it('should be titled "Environment"', async () => {
// @ts-ignore
const a: Environment = await page.evaluate(() => window.Environment.envInstance);
console.log(a);
await expect(page.title()).resolves.toMatch('Environment');
});
});