Skip to content

Commit

Permalink
fix(test): jsdoc?
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Apr 14, 2024
1 parent deb8420 commit 83ef2dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/puppeteer/puppeteer.test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import path from 'node:path';

import { findpath } from 'nw';
import puppeteer from "puppeteer";
import puppeteer, { Browser } from "puppeteer";
import { afterAll, beforeAll, describe, expect, it } from 'vitest';

describe('NW.js Puppeteer test suite', function () {

/**
* @type {Browser}
*/
let browser = undefined;
let page = undefined;

Expand All @@ -19,9 +22,6 @@ describe('NW.js Puppeteer test suite', function () {
headless: true,
ignoreDefaultArgs: true,
executablePath: nwPath,
env: {
DISPLAY: ':10',
},
/* Specify file path to NW.js app */
args: [`--nwapp=${path.resolve('js', 'puppeteer')}`],
});
Expand All @@ -41,7 +41,7 @@ describe('NW.js Puppeteer test suite', function () {
const text = await page.evaluate(el => el.textContent, textElement);

expect(text).toEqual('Hello, World!\n\n');
});
}, { timeout: Infinity });

/* Quit Puppeteer browser. */
afterAll(async function () {
Expand Down

0 comments on commit 83ef2dc

Please sign in to comment.