Skip to content

Commit

Permalink
chore: update for v4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed May 22, 2019
1 parent ad9f1c5 commit f3bdd94
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "electron-chromedriver",
"version": "5.0.0-beta.1",
"version": "4.2.0",
"description": "Electron ChromeDriver",
"repository": "https://github.com/electron/chromedriver",
"bin": {
Expand All @@ -13,8 +13,8 @@
"author": "Kevin Sawicki",
"license": "MIT",
"dependencies": {
"electron-download": "^4.1.0",
"extract-zip": "^1.6.5"
"electron-download": "^4.1.1",
"extract-zip": "^1.6.7"
},
"devDependencies": {
"mocha": "^2.3.3",
Expand Down
17 changes: 12 additions & 5 deletions test/chromedriver-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ const { version } = require('../package')
const describe = global.describe
const it = global.it

const versions = {
3: 'ChromeDriver 2.36',
4: 'ChromeDriver 2.40.613160',
5: 'ChromeDriver 2.45',
6: 'ChromeDriver 76.0.3783.1'
}

describe('chromedriver binary', function () {
this.timeout(10000)

Expand All @@ -21,11 +28,11 @@ describe('chromedriver binary', function () {
chromeDriver.stderr.on('data', data => output += data)

chromeDriver.on('close', () => {
if (version.startsWith('3')) {
assert.equal(output.indexOf('ChromeDriver 2.36'), 0, `Unexpected version: ${output}`)
} else if (version.startsWith('4')) {
// see src/chrome/test/chromedriver/embed_version_in_cpp.py
assert.equal(output.indexOf('ChromeDriver 69.0.3497.106'), 0, `Unexpected version: ${output}`)
for (const v in versions) {
if (version.startsWith(v)) {
const idx = output.indexOf(versions[v])
assert.equal(idx, 0, `Unexpected version: ${output}`)
}
}
})

Expand Down

0 comments on commit f3bdd94

Please sign in to comment.