Skip to content

Instantly share code, notes, and snippets.

@rmzelle
Created August 4, 2016 04:16
Show Gist options
  • Save rmzelle/8b75ac5061913686043c411fe924c51a to your computer and use it in GitHub Desktop.
Save rmzelle/8b75ac5061913686043c411fe924c51a to your computer and use it in GitHub Desktop.
ping-api.com test against http://validator.w3.org/nu/ via GET
this.setupCase = function () {
return {
"headers": {},
"params": {
"doc": "https://raw.githubusercontent.com/citation-style-language/styles/master/apa.csl",
"schema": "https://raw.githubusercontent.com/citation-style-language/schema/v1.0.1/csl.rnc https://raw.githubusercontent.com/citation-style-language/schema/master/csl.sch",
"parser": "xml",
"laxtype": "yes",
"level": "error",
"out": "json",
"showsource": "yes"
},
"body": {}
};
};
this.testCase = function (test, response) {
test.equal(response.statusCode, 200);
test.equal(response.body.messages, []);
test.done();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment