2019-02-10 12:57:36 +08:00
|
|
|
'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.deepStrictEqual('a'.repeat(30), 'a'.repeat(31)); },
|
|
|
|
(err) => !err.message.includes('^')
|
|
|
|
);
|
|
|
|
|
|
|
|
// Confirm that there is a position indicator.
|
|
|
|
assert.throws(
|
2019-05-02 05:52:37 +08:00
|
|
|
() => { assert.deepStrictEqual('aaaa', 'aaaaa'); },
|
2019-02-10 12:57:36 +08:00
|
|
|
(err) => err.message.includes('^')
|
|
|
|
);
|