Skip to content

Instantly share code, notes, and snippets.

View gontard's full-sized avatar

Sébastien Boulet gontard

View GitHub Profile
@gontard
gontard / uploadLocalFile.js
Created August 8, 2019 14:37 — forked from Bunk/uploadLocalFile.js
Nightwatch — Upload local files to remote selenium grid
const path = require('path')
const util = require('util')
const events = require('events')
const archiver = require('archiver')
const handleResult = cb => result => {
if (result.status !== 0) throw new Error(result.value.message)
cb(result.value)
}