plugins/tests/http_tests/post_test.js
Star 6b1b9d8c6a remove discover
add dao
many updates
2024-05-27 16:54:59 +08:00

9 lines
248 B
JavaScript

import http from "apigo.cloud/git/apigo/plugins/http"
let serv = startTestServer('10803')
let r = http.post('http://127.0.0.1:10803/echo', {aaa:111})
serv.stop()
if(r.data.aaa !== 111) throw new Error('aaa is '+r.data.aaa+' not 111')
return true