Skip to content

Commit

Permalink
bump timeout for slow internet
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed May 16, 2024
1 parent 59b1521 commit b136f6d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/testDownload.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ const path = require('path');
const fs = require('fs');
const packageInfo = require('../package.json');

describe('test download', function() {
const {version, selenium} = packageInfo;
const {versionNumber = version} = selenium;
describe('test download', function () {
const { version, selenium } = packageInfo;
const { versionNumber = version } = selenium;

it('tests the config', function() {
it('tests the config', function () {
const config = require('../install.conf.js');
assert.strictEqual(config.downloadUrl, `https://github.com/SeleniumHQ/selenium/releases/download/selenium-${selenium.folder}/${selenium.filename}-${versionNumber}.jar`);
})

it('tests the download', async function() {
this.timeout(3000);
it('tests the download', async function () {
this.timeout(10000);
const download = require('../download.js');
await download();

assert.strictEqual(fs.existsSync(path.join(__dirname, `../lib/${selenium.filename}-${versionNumber}.jar`)), true);
});

it('tests the require path', function() {
const {path: filePath} = require('../index.js');
it('tests the require path', function () {
const { path: filePath } = require('../index.js');
assert.strictEqual(filePath, path.join(__dirname, `../lib/${selenium.filename}-${versionNumber}.jar`));
});
})

0 comments on commit b136f6d

Please sign in to comment.