forked from external-repos/pa11y-dashboard
Write tests for task pages (and related actions)
This commit is contained in:
14
test/functional/helper/webservice.js
Normal file
14
test/functional/helper/webservice.js
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
var createClient = require('pa11y-webservice-client-node');
|
||||
|
||||
module.exports = createWebserviceClient;
|
||||
|
||||
// Create a webservice client
|
||||
function createWebserviceClient (config) {
|
||||
var webserviceUrl = config.webservice;
|
||||
if (typeof webserviceUrl == 'object') {
|
||||
webserviceUrl = 'http://' + webserviceUrl.host + ':' + webserviceUrl.port + '/';
|
||||
}
|
||||
return createClient(webserviceUrl);
|
||||
}
|
Reference in New Issue
Block a user