Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit 2ae3679

Browse files
committed
test: check that invalid serverUrl throws (#20)
1 parent 33938f9 commit 2ae3679

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ test('custom headers', function (t) {
101101
})
102102
})
103103

104+
test('serverUrl is invalid', function (t) {
105+
t.throws(function () {
106+
new Client(validOpts({ // eslint-disable-line no-new
107+
serverUrl: 'invalid'
108+
}))
109+
})
110+
t.end()
111+
})
112+
104113
test('serverUrl contains path', function (t) {
105114
t.plan(1)
106115
const server = APMServer(function (req, res) {

0 commit comments

Comments
 (0)