Created
June 9, 2018 11:36
-
-
Save NimaSoroush/28c3a5808af393610a33bd32d4c43911 to your computer and use it in GitHub Desktop.
Running Differencify with vanilla node
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
const Differencify = require('differencify'); | |
const differencify = new Differencify({ debug: true }); | |
(async () => { | |
const result = await differencify | |
.init() | |
.launch() | |
.newPage() | |
.setViewport({ width: 1600, height: 1200 }) | |
.goto('https://github.com/NimaSoroush/differencify') | |
.waitFor(1000) | |
.screenshot() | |
.toMatchSnapshot() | |
.result((result) => { | |
console.log(result); | |
}) | |
.close() | |
.end(); | |
})(); |
Author
NimaSoroush
commented
Jun 9, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment