mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-04-24 00:00:03 +08:00
refactor e2e test scripts
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
module.exports = { getServer };
|
||||
|
||||
const configs = {
|
||||
local: {
|
||||
host: 'localhost',
|
||||
port: 4723
|
||||
},
|
||||
saucelabs: {
|
||||
host: 'ondemand.saucelabs.com',
|
||||
port: 80,
|
||||
auth: process.env.SAUCE_USERNAME + ":" + process.env.SAUCE_ACCESS_KEY
|
||||
}
|
||||
}
|
||||
|
||||
function getServer(environment) {
|
||||
return configs[environment.toLowerCase()];
|
||||
}
|
||||
Reference in New Issue
Block a user