• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2require('../common');
3const assert = require('assert');
4
5process.env.NODE_DISABLE_COLORS = true;
6process.stderr.columns = 20;
7
8// Confirm that there is no position indicator.
9assert.throws(
10  () => { assert.deepStrictEqual('a'.repeat(30), 'a'.repeat(31)); },
11  (err) => !err.message.includes('^')
12);
13
14// Confirm that there is a position indicator.
15assert.throws(
16  () => { assert.deepStrictEqual('aaaa', 'aaaaa'); },
17  (err) => err.message.includes('^')
18);
19