From a845edad4e2825f2f29e4c6174543d3a301185a7 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 28 Sep 2015 04:15:00 +0200 Subject: [PATCH] Add test for meme overview --- test/memes-test.coffee | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/memes-test.coffee b/test/memes-test.coffee index 83b9517..3ce9473 100644 --- a/test/memes-test.coffee +++ b/test/memes-test.coffee @@ -43,3 +43,17 @@ describe 'modulo memes', -> acc++ if acc is questions.length then done() questions.map (q) -> asjon.send q + + # not testing '-v' mode as it takes too much time + it 'dovrebbe fornire un elenco di memes', (done) -> + questions = [ + 'asjon memes' + ] + acc = 0 + asjon.receive (e,l) -> + if acc is 1 + console.log l.join() + l.join().should.match /^guarda qui:/g + acc++ + if acc is questions.length then done() + questions.map (q) -> asjon.send q