Skip to content

Commit f7e1422

Browse files
author
Gareth Jones
committed
test: windows does not use the same file modes as unix
1 parent 68fab1c commit f7e1422

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/moveAndMaybeCompressFile-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ describe('moveAndMaybeCompressFile', () => {
127127

128128
const destinationStats = await fs.stat(destination);
129129
const destMode = (destinationStats.mode & 0o777).toString(8);
130-
destMode.should.equal('744');
130+
destMode.should.equalOneOf('744', '666'); // windows does not use unix file modes
131131

132132
const zippedContents = await fs.readFile(destination);
133133
const contents = await new Promise(resolve => {
@@ -150,7 +150,7 @@ describe('moveAndMaybeCompressFile', () => {
150150

151151
const destinationStats = await fs.stat(destination);
152152
const destMode = (destinationStats.mode & 0o777).toString(8);
153-
destMode.should.equal('400');
153+
destMode.should.equalOneOf('400', '444'); // windows does not use unix file modes
154154

155155
const zippedContents = await fs.readFile(destination);
156156
const contents = await new Promise(resolve => {

0 commit comments

Comments
 (0)