UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

17 lines (15 loc) 292 B
const rp = require('@cypress/request-promise') const { fs } = require('./util/fs') module.exports = { send (pathToFile, url) { return fs .readFileAsync(pathToFile) .then((buf) => { return rp({ url, method: 'PUT', body: buf, }) }) }, }