diff --git a/test/memoria-test.coffee b/test/memoria-test.coffee index eb5033b..26f14c9 100644 --- a/test/memoria-test.coffee +++ b/test/memoria-test.coffee @@ -15,10 +15,10 @@ describe 'modulo memoria', -> it 'risponde quando richiesto', (done) -> replies = 0 - arr = ["cos'è","qual'è","chi è","cosa sono","quand'è"] + arr = ["cos'è","qual'è","qual è","qualè","chi è","cosa sono","quand'è"] asjon.receive (envelope,strings) -> replies++ - if replies is 5 then done() + if replies is arr.length then done() arr.map (x) -> 'asjon ' + x + ' test' + (if Math.random() > 0.5 then '?' else '') .forEach (x) -> asjon.send x