• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2const { mustCall } = require('../common');
3const { notStrictEqual } = require('assert');
4
5// tty.WriteStream#_refreshSize() only emits the 'resize' event when the
6// window dimensions change.  We cannot influence that from the script
7// but we can set the old values to something exceedingly unlikely.
8process.stdout.columns = 9001;
9process.stdout.on('resize', mustCall());
10process.kill(process.pid, 'SIGWINCH');
11setImmediate(mustCall(() => notStrictEqual(process.stdout.columns, 9001)));
12