Skip to content

Commit 912bdee

Browse files
authored
re-add --no-update-notifier
1 parent eca3e21 commit 912bdee

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/cli.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ describe('bin', () => {
6060
it('should return the version', cb => {
6161
const cp = execFile('node', [
6262
path.resolve(__dirname, '..', pkg.bin.yo),
63-
'--version'
63+
'--version',
64+
'--no-update-notifier'
6465
]);
6566
const expected = pkg.version;
6667

@@ -71,7 +72,7 @@ describe('bin', () => {
7172
});
7273

7374
it('should output available generators when `--generators` flag is supplied', cb => {
74-
const cp = execFile('node', [path.resolve(__dirname, '..', pkg.bin.yo), '--generators']);
75+
const cp = execFile('node', [path.resolve(__dirname, '..', pkg.bin.yo), '--generators', '--no-update-notifier']);
7576

7677
cp.stdout.once('data', data => {
7778
assert(data.length > 0);
@@ -84,7 +85,8 @@ describe('bin', () => {
8485
const cp = execFile('node', [
8586
path.resolve(__dirname, '..', pkg.bin.yo),
8687
'--generators',
87-
'--local-only'
88+
'--local-only',
89+
'--no-update-notifier'
8890
]);
8991

9092
cp.stdout.once('data', data => {

0 commit comments

Comments
 (0)