Skip to content

Instantly share code, notes, and snippets.

View alexose's full-sized avatar

Alexander Ose alexose

  • Parse.ly
  • Jacksonville, Oregon
View GitHub Profile
@alexose
alexose / assertions-compareScreenshot.js
Created January 15, 2018 16:34 — forked from umarmw/assertions-compareScreenshot.js
Nightwatch with Visual Regression testing
// location: ./assertions/compareScreenshot.js
var resemblejs = require('node-resemble-js'),
fs = require('fs');
exports.assertion = function(filename, expected) {
var screenshotPath = 'test/screenshots/',
baselinePath = screenshotPath + 'baseline/' + filename,
resultPath = screenshotPath + 'results/' + filename,
diffPath = screenshotPath + 'diffs/' + filename;
@alexose
alexose / README.md
Created August 28, 2017 05:16 — forked from calvinmetcalf/README.md
Reprojected Raster Tiles