This repository has been archived by the owner on Nov 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(prettier): run prettier on old js PRs
- Loading branch information
1 parent
2a2df31
commit 6be462b
Showing
4 changed files
with
25 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
const { Chromeless } = require('chromeless') | ||
|
||
async function run() { | ||
const chromeless = new Chromeless() | ||
const chromeless = new Chromeless() | ||
|
||
const screenshot = await chromeless | ||
.goto('https://www.google.com') | ||
.mousedown('input[name="btnI"]') | ||
.mouseup('input[name="btnI"]') | ||
.wait('.latest-doodle') | ||
.screenshot() | ||
const screenshot = await chromeless | ||
.goto('https://www.google.com') | ||
.mousedown('input[name="btnI"]') | ||
.mouseup('input[name="btnI"]') | ||
.wait('.latest-doodle') | ||
.screenshot() | ||
|
||
console.log(screenshot) | ||
console.log(screenshot) | ||
|
||
await chromeless.end() | ||
await chromeless.end() | ||
} | ||
|
||
run().catch(console.error.bind(console)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters