Browse Source

Escape dot in regex in a test

err
Sindre Sorhus 8 years ago
parent
commit
f535947a05
  1. 2
      test/error.js

2
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 () => {

Loading…
Cancel
Save