mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
fix test result report posting
This commit is contained in:
parent
7842768707
commit
87d7894d71
@ -4,6 +4,7 @@
|
|||||||
Bacon = require('baconjs').Bacon,
|
Bacon = require('baconjs').Bacon,
|
||||||
express = require('express'),
|
express = require('express'),
|
||||||
http = require("http"),
|
http = require("http"),
|
||||||
|
https = require("https"),
|
||||||
url = require("url"),
|
url = require("url"),
|
||||||
path = require("path"),
|
path = require("path"),
|
||||||
base64_arraybuffer = require('base64-arraybuffer'),
|
base64_arraybuffer = require('base64-arraybuffer'),
|
||||||
@ -157,7 +158,7 @@
|
|||||||
var options = {
|
var options = {
|
||||||
host: "api.mongolab.com",
|
host: "api.mongolab.com",
|
||||||
port: 443,
|
port: 443,
|
||||||
path: "/api/1/databases/html2canvas/collections?" + process.env.MONGOLAB_APIKEY,
|
path: "/api/1/databases/html2canvas/collections/webdriver-results?apiKey=" + process.env.MONGOLAB_APIKEY,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
@ -166,7 +167,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
console.log("Sending results for", browser);
|
console.log("Sending results for", browser);
|
||||||
var request = http.request(options, function(res) {
|
var request = https.request(options, function(res) {
|
||||||
console.log(colors.green, "Results sent for", browser);
|
console.log(colors.green, "Results sent for", browser);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user