Skip to content

Commit

Permalink
Add output for exec command tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sukima committed Sep 15, 2014
1 parent 40fea33 commit 1566cd4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ growl('Show pdf filesystem icon', { title: 'Use show()', image: 'article.pdf' })
growl('here \' are \n some \\ characters that " need escaping', {}, function(error, stdout, stderr) {
if (error !== null) throw new Error('escaping failed:\n' + stdout + stderr);
})
growl('Allow custom notifiers', { exec: 'echo %s' })
growl('Allow custom notifiers', { title: 'test', exec: 'echo' })
growl('Allow custom notifiers', { title: 'test', exec: 'echo %s' })
growl('Allow custom notifiers', { exec: 'echo XXX %s' }, function(error, stdout, stderr) {
console.log(stdout);
})
growl('Allow custom notifiers', { title: 'test', exec: 'echo YYY' }, function(error, stdout, stderr) {
console.log(stdout);
})
growl('Allow custom notifiers', { title: 'test', exec: 'echo ZZZ %s' }, function(error, stdout, stderr) {
console.log(stdout);
})
growl('Open a URL', { url: 'https://npmjs.org/package/growl' });

0 comments on commit 1566cd4

Please sign in to comment.