Update wolfram api url

This commit is contained in:
rnhmjoj 2015-05-06 20:42:15 +02:00
parent b4b0feb203
commit 8176bb6438

View File

@ -24,7 +24,7 @@ describe 'modulo wolfram', ->
it 'dovrebbe reagire correttamente in caso di risposta malformata', (done) ->
process.env.WOLFRAM_API_KEY = 'totally-legit-key'
nock('http://api.wolframalpha.com')
.get('/v2/query?input=test&primary=true&appid=totally-legit-key')
.get('/v2/query?input=test&appid=totally-legit-key')
.reply 400, 'no eenterwebz for u'
acc = 0
asjon.receive (e,l) ->
@ -39,7 +39,7 @@ describe 'modulo wolfram', ->
it 'dovrebbe parsare correttamente la risposta', (done) ->
process.env.WOLFRAM_API_KEY = 'totally-legit-key'
nock('http://api.wolframalpha.com')
.get('/v2/query?input=test&primary=true&appid=totally-legit-key')
.get('/v2/query?input=test&appid=totally-legit-key')
.replyWithFile 200, __dirname+'/wolfram.xml'
acc = 0
asjon.receive (e,l) ->