Skip to content

Commit 72d2f2a

Browse files
committed
fix: print 'copied' when --copy
1 parent 085f4e3 commit 72d2f2a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ async function main(cli) {
1717

1818
if (copy) {
1919
copyToClipboard(result)
20+
console.log('copied')
2021
} else {
2122
console.log(result)
2223
}

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ test('Should copy to clipboard', t => {
9191
copy: true,
9292
},
9393
})
94-
t.is(result.stdout, '')
94+
t.is(result.stdout, 'copied')
9595
t.is(readClipboard(), JSON.stringify(packageJson))
9696
})
9797

0 commit comments

Comments
 (0)