From ef0069a9de38c89cb4b4117ffa165e7f0c6a6351 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 26 Jul 2021 12:16:26 -0700 Subject: [PATCH] [eslint] enable `no-regex-spaces` --- test/stackTrace.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/stackTrace.js b/test/stackTrace.js index fd3fedfd..18616ba0 100644 --- a/test/stackTrace.js +++ b/test/stackTrace.js @@ -171,7 +171,7 @@ tap.test('preserves stack trace for failed assertions', function (tt) { tt.equal(typeof data.diag.stack, 'string'); var at = data.diag.at || ''; stack = data.diag.stack || ''; - tt.ok((/^Error: true should be false(\n at .+)+/).exec(stack), 'stack should be a stack'); + tt.ok((/^Error: true should be false(\n {4}at .+)+/).exec(stack), 'stack should be a stack'); tt.deepEqual(data, { ok: false, id: 1, @@ -236,7 +236,7 @@ tap.test('preserves stack trace for failed assertions where actual===falsy', fun tt.equal(typeof data.diag.stack, 'string'); var at = data.diag.at || ''; stack = data.diag.stack || ''; - tt.ok((/^Error: false should be true(\n at .+)+/).exec(stack), 'stack should be a stack'); + tt.ok((/^Error: false should be true(\n {4}at .+)+/).exec(stack), 'stack should be a stack'); tt.deepEqual(data, { ok: false, id: 1,