@@ -80,14 +80,16 @@ test('do not overwrite when disabled', async t => {
80
80
t . is ( error . code , 'EEXIST' , error . message ) ;
81
81
} ) ;
82
82
83
- test ( 'create directories with specified mode' , async t => {
84
- const directory = t . context . destination ;
85
- const destination = `${ directory } /${ uuidv4 ( ) } ` ;
86
- const directoryMode = 0o700 ;
87
- await cpFile ( 'license' , destination , { directoryMode} ) ;
88
- const stat = fs . statSync ( directory ) ;
89
- t . is ( stat . mode & directoryMode , directoryMode ) ;
90
- } ) ;
83
+ if ( process . platform !== 'win32' ) {
84
+ test ( 'create directories with specified mode' , async t => {
85
+ const directory = t . context . destination ;
86
+ const destination = `${ directory } /${ uuidv4 ( ) } ` ;
87
+ const directoryMode = 0o700 ;
88
+ await cpFile ( 'license' , destination , { directoryMode} ) ;
89
+ const stat = fs . statSync ( directory ) ;
90
+ t . is ( stat . mode & directoryMode , directoryMode ) ;
91
+ } ) ;
92
+ }
91
93
92
94
test ( 'do not create `destination` on unreadable `source`' , async t => {
93
95
const error = await t . throwsAsync ( cpFile ( 'node_modules' , t . context . destination ) ) ;
0 commit comments