diff --git a/test/error.js b/test/error.js index 2f5efb0..0d819b0 100644 --- a/test/error.js +++ b/test/error.js @@ -40,7 +40,7 @@ test('dns message', async t => { test('options.body error message', async t => { const err = await t.throws(got(s.url, {body: () => {}})); - t.regex(err.message, /options.body must be a ReadableStream, string, Buffer or plain Object/); + t.regex(err.message, /options\.body must be a ReadableStream, string, Buffer or plain Object/); }); test.after('cleanup', async () => {