Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ test('custom headers', function (t) {
})
})

test('serverUrl is invalid', function (t) {
t.throws(function () {
new Client(validOpts({ // eslint-disable-line no-new
serverUrl: 'invalid'
}))
})
t.end()
})

test('serverUrl contains path', function (t) {
t.plan(1)
const server = APMServer(function (req, res) {
Expand Down