diff --git a/test/memes-test.coffee b/test/memes-test.coffee index 2fa895f..83b9517 100644 --- a/test/memes-test.coffee +++ b/test/memes-test.coffee @@ -17,10 +17,17 @@ describe 'modulo memes', -> it "dovrebbe generare correttamente l'url dell'immagine", (done) -> questions = [ "asjon meme fry, not sure if this works, or not" + "asjon meme doge, special characters?, underscore_ dash-" + "asjon meme icanhas, i can has, Upper CaSes?" + ] + replies = [ + 'http://memegen.link/fry/not-sure-if-this-works/or-not.jpg' + 'http://memegen.link/doge/special-characters~q/underscore__-dash--.jpg' + 'http://memegen.link/icanhas/i-can-has/upper-cases~q.jpg' ] acc = 0 asjon.receive (e,l) -> - l.join().should.equal 'http://memegen.link/fry/not-sure-if-this-works/or-not.jpg' + l.join().should.equal replies[acc] acc++ if acc is questions.length then done() questions.map (q) -> asjon.send q