Write tests for task pages (and related actions)

This commit is contained in:
Rowan Manning
2013-11-22 11:05:27 +00:00
parent ae5b214834
commit ea330548b1
11 changed files with 314 additions and 110 deletions

View 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);
}