mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
aa8a2441cb
PR-URL: https://github.com/nodejs/node/pull/46371 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com>
19 lines
465 B
JavaScript
19 lines
465 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const assert = require('assert');
|
|
|
|
process.env.NODE_DISABLE_COLORS = true;
|
|
process.stderr.columns = 20;
|
|
|
|
// Confirm that there is no position indicator.
|
|
assert.throws(
|
|
() => { assert.strictEqual('a'.repeat(30), 'a'.repeat(31)); },
|
|
(err) => !err.message.includes('^'),
|
|
);
|
|
|
|
// Confirm that there is a position indicator.
|
|
assert.throws(
|
|
() => { assert.strictEqual('aaaa', 'aaaaa'); },
|
|
(err) => err.message.includes('^'),
|
|
);
|