Update asserts for new outputs
This commit is contained in:
parent
8176bb6438
commit
7da23f95df
@ -29,9 +29,9 @@ describe 'modulo wolfram', ->
|
|||||||
acc = 0
|
acc = 0
|
||||||
asjon.receive (e,l) ->
|
asjon.receive (e,l) ->
|
||||||
if acc is 0
|
if acc is 0
|
||||||
l.join().should.equal 'Contattando Wolfram Alpha...'
|
l.join().should.match /(\w+| )+\.{3}$/g
|
||||||
else
|
else
|
||||||
l.join().should.equal 'invalid response from Wolfram Alpha'
|
l.join().split(':')[0].should.equal "c'è qualche problema"
|
||||||
acc++
|
acc++
|
||||||
if acc is 2 then done()
|
if acc is 2 then done()
|
||||||
asjon.send 'asjon wfa test'
|
asjon.send 'asjon wfa test'
|
||||||
@ -44,7 +44,7 @@ describe 'modulo wolfram', ->
|
|||||||
acc = 0
|
acc = 0
|
||||||
asjon.receive (e,l) ->
|
asjon.receive (e,l) ->
|
||||||
if acc is 0
|
if acc is 0
|
||||||
l.join().should.equal 'Contattando Wolfram Alpha...'
|
l.join().should.match /(\w+| )+\.{3}$/g
|
||||||
else
|
else
|
||||||
list = l.join().split '\n'
|
list = l.join().split '\n'
|
||||||
list[0].should.equal '=== Input interpretation'
|
list[0].should.equal '=== Input interpretation'
|
||||||
|
Loading…
Reference in New Issue
Block a user