MCPcopy
hub / github.com/request/request / addTest

Function addTest

tests/test-baseUrl.js:20–29  ·  view source on GitHub ↗
(baseUrl, uri, expected)

Source from the content-addressed store, hash-verified

18})
19
20function addTest (baseUrl, uri, expected) {
21 tape('test baseurl="' + baseUrl + '" uri="' + uri + '"', function (t) {
22 request(uri, { baseUrl: baseUrl }, function (err, resp, body) {
23 t.equal(err, null)
24 t.equal(body, 'ok')
25 t.equal(resp.headers['x-path'], expected)
26 t.end()
27 })
28 })
29}
30
31function addTests () {
32 addTest(s.url, '', '/')

Callers 1

addTestsFunction · 0.70

Calls 1

requestFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…