diff --git a/test/wolfram-test.coffee b/test/wolfram-test.coffee index 2004a72..c29b072 100644 --- a/test/wolfram-test.coffee +++ b/test/wolfram-test.coffee @@ -29,9 +29,9 @@ describe 'modulo wolfram', -> acc = 0 asjon.receive (e,l) -> if acc is 0 - l.join().should.equal 'Contattando Wolfram Alpha...' + l.join().should.match /(\w+| )+\.{3}$/g else - l.join().should.equal 'invalid response from Wolfram Alpha' + l.join().split(':')[0].should.equal "c'รจ qualche problema" acc++ if acc is 2 then done() asjon.send 'asjon wfa test' @@ -44,7 +44,7 @@ describe 'modulo wolfram', -> acc = 0 asjon.receive (e,l) -> if acc is 0 - l.join().should.equal 'Contattando Wolfram Alpha...' + l.join().should.match /(\w+| )+\.{3}$/g else list = l.join().split '\n' list[0].should.equal '=== Input interpretation'