Backup E2E test: Fix path analysis on windows

pull/1/head
Scott Nonnenberg 7 years ago
parent fdc13d0af3
commit 1bfc1ed63e
No known key found for this signature in database
GPG Key ID: 5F82280C35134661

@ -266,7 +266,8 @@ describe('Backup', () => {
return _.omit(model, ['id']);
}
const twoSlashes = /.*\/.*\/.*/;
const slash = path.sep === '/' ? '\\/' : '\\\\';
const twoSlashes = new RegExp(`.*${slash}.*${slash}.*`);
function removeDirs(dirs) {
return _.filter(dirs, (fullDir) => {
const dir = fullDir.replace(attachmentsPath, '');

Loading…
Cancel
Save