From f535947a0508f9e1759684d5f1b256721352d3dd Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 25 Jun 2017 02:21:09 +0200 Subject: [PATCH] Escape dot in regex in a test --- test/error.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 () => {