@@ -3,20 +3,20 @@ import { handleOptions } from '../src/handleOptions'
33
44describe ( 'handleOptions' , ( ) => {
55 const defaultOptions = {
6- directory : process . cwd ( )
6+ directory : process . cwd ( ) ,
77 }
88 test ( 'ignore' , ( ) => {
99 const options = handleOptions ( {
1010 ...defaultOptions ,
11- ignore : '.git,node_modules'
11+ ignore : '.git,node_modules' ,
1212 } )
1313 expect ( options . ignore ) . toEqual ( [ '.git' , 'node_modules' ] )
1414 } )
1515
1616 test ( 'layer' , ( ) => {
1717 const options = handleOptions ( {
1818 ...defaultOptions ,
19- layer : 1
19+ layer : 1 ,
2020 } )
2121 expect ( options . layer ) . toBe ( 1 )
2222 } )
@@ -29,7 +29,7 @@ describe('handleOptions', () => {
2929 test ( 'onlyFolder' , ( ) => {
3030 const options = handleOptions ( {
3131 ...defaultOptions ,
32- onlyFolder : true
32+ onlyFolder : true ,
3333 } )
3434 expect ( options . onlyFolder ) . toBe ( true )
3535 } )
@@ -42,8 +42,16 @@ describe('handleOptions', () => {
4242 test ( 'output' , ( ) => {
4343 const options = handleOptions ( {
4444 ...defaultOptions ,
45- output : 'test.md'
45+ output : 'test.md' ,
4646 } )
4747 expect ( options . output ) . toBe ( 'test.md' )
4848 } )
49+
50+ test ( 'clipboard' , ( ) => {
51+ const options = handleOptions ( {
52+ ...defaultOptions ,
53+ clipboard : true ,
54+ } )
55+ expect ( options . clipboard ) . toBe ( true )
56+ } )
4957} )
0 commit comments