• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2require('../common');
3const assert = require('assert');
4const { spawnSync } = require('child_process');
5const os = require('os');
6
7const { signal, status, output } =
8  spawnSync(process.execPath, ['--security-revert=not-a-cve']);
9assert.strictEqual(signal, null);
10assert.strictEqual(status, 12);
11assert.strictEqual(
12  output[2].toString(),
13  `${process.execPath}: Error: ` +
14  `Attempt to revert an unknown CVE [not-a-cve]${os.EOL}`);
15