Add test for meme overview

This commit is contained in:
rnhmjoj 2015-09-28 04:15:00 +02:00
parent b5e051524a
commit a845edad4e

View File

@ -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