Skip to content

Commit ef0069a

Browse files
committed
[eslint] enable no-regex-spaces
1 parent 2ebd23a commit ef0069a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/stackTrace.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ tap.test('preserves stack trace for failed assertions', function (tt) {
171171
tt.equal(typeof data.diag.stack, 'string');
172172
var at = data.diag.at || '';
173173
stack = data.diag.stack || '';
174-
tt.ok((/^Error: true should be false(\n at .+)+/).exec(stack), 'stack should be a stack');
174+
tt.ok((/^Error: true should be false(\n {4}at .+)+/).exec(stack), 'stack should be a stack');
175175
tt.deepEqual(data, {
176176
ok: false,
177177
id: 1,
@@ -236,7 +236,7 @@ tap.test('preserves stack trace for failed assertions where actual===falsy', fun
236236
tt.equal(typeof data.diag.stack, 'string');
237237
var at = data.diag.at || '';
238238
stack = data.diag.stack || '';
239-
tt.ok((/^Error: false should be true(\n at .+)+/).exec(stack), 'stack should be a stack');
239+
tt.ok((/^Error: false should be true(\n {4}at .+)+/).exec(stack), 'stack should be a stack');
240240
tt.deepEqual(data, {
241241
ok: false,
242242
id: 1,

0 commit comments

Comments
 (0)