From 484f1051a827e5cfb25b3dcf8abd7958f49dbb5e Mon Sep 17 00:00:00 2001 From: Marc Walter Date: Thu, 2 Jan 2025 23:17:53 +0100 Subject: [PATCH] Formatting changes --- index.js | 2 +- test/folders.js | 4 ++-- test/symbolic-links.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 2c1a6e1..049e407 100644 --- a/index.js +++ b/index.js @@ -401,7 +401,7 @@ function notUndefined(obj) { function reduceGlobPatterns(globs, name) { if (isFunction(globs)) { - log.glob(`Using function to ${name}`) + log.glob(`Using function to ${name}`); return globs; } else if (!globs || !Array.isArray(globs) || globs.length === 0) { return undefined; diff --git a/test/folders.js b/test/folders.js index f88a2a8..cd89378 100644 --- a/test/folders.js +++ b/test/folders.js @@ -235,11 +235,11 @@ describe('Generating a hash over a folder, it', function () { result.children[1].name.should.equal('folder2'); } - const include1 = (process.platform === 'win32') ? '*' : '**/*'; + const include1 = process.platform === 'win32' ? '*' : '**/*'; await verify({ folders: { - exclude: [path.join('**','folder')], + exclude: [path.join('**', 'folder')], include: [include1], matchBasename: false, matchPath: true, diff --git a/test/symbolic-links.js b/test/symbolic-links.js index 1807e4e..13ce1ba 100644 --- a/test/symbolic-links.js +++ b/test/symbolic-links.js @@ -269,8 +269,8 @@ function toHash(strings) { function resolvePath(string) { if (process.platform === 'win32') { - return path.posix.resolve(string) + return path.posix.resolve(string); } else { - return path.resolve(string) + return path.resolve(string); } }