Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
maprules1000 committed Apr 10, 2019
1 parent a8604fc commit d024767
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default class Snapshot extends PercyCommand {
'ignore-folders': flags.string({
char: 'i',
description: 'Comma-seperated string of folders to ignore. Ex: Tmp,_secrets,node_modules',
default: '',
}),
'widths': flags.string({
char: 'w',
Expand Down Expand Up @@ -74,7 +75,7 @@ export default class Snapshot extends PercyCommand {
if (!this.percyWillRun()) { this.exit(0) }

const widths = rawWidths.split(',').map(Number)
const ignoreFolders = rawIgnoreFolders.split(',')
const ignoreFolders = rawIgnoreFolders ? rawIgnoreFolders.split(',') : undefined

// start the agent service
await this.agentService.start({port, networkIdleTimeout})
Expand Down

0 comments on commit d024767

Please sign in to comment.