Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add a test for articles with a single quote in between some kind of s…

…tyle emphasis
  • Loading branch information...
commit 172801c425dc4a37480b7c043aa56640bb34248e 1 parent a63556d
Bryan Clark clarkbw authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 test/wikiClientTest.js
13 test/wikiClientTest.js
View
@@ -59,6 +59,19 @@ vows.describe("Wikipedia search checks").addBatch({
expect(_(response).startsWith("<p><strong>Albert Einstein</strong>")).to.be(true);
// console.log(response);
// console.log("*************************************************************************************\n\n\n\n");
+ },
+ },
+ "When searching (in html) for a wiki article with a single quote in the title":{
+ topic: function(){
+ var options = {query: "Harry Potter and the Philosopher's Stone", format: "html"};
+ wikiClient.searchArticle(options, this.callback);
+ },
+
+ "A valid full article is returned": function(err, response){
+ expect(err).to.be(null);
+ expect(_(response).startsWith("<p><strong><em>Harry Potter and the Philosopher's Stone</em></strong>")).to.be(true);
+// console.log(response);
+// console.log("*************************************************************************************\n\n\n\n");
}
},
// end of html test
Please sign in to comment.
Something went wrong with that request. Please try again.