From bdaa69367353ebc2db621cc0c8b5732372233644 Mon Sep 17 00:00:00 2001 From: Jeroen Engels Date: Tue, 5 Nov 2024 00:03:04 +0100 Subject: [PATCH] Update maintenance file snapshots --- .../elm-review-package-tests/check-previews-compile.js | 4 +--- .../maintenance/update-examples-from-preview.js | 7 +++---- .../elm-review-package-tests/check-previews-compile.js | 4 +--- .../maintenance/update-examples-from-preview.js | 7 +++---- 4 files changed, 8 insertions(+), 14 deletions(-) diff --git a/test/run-snapshots/elm-review-something-for-new-rule/elm-review-package-tests/check-previews-compile.js b/test/run-snapshots/elm-review-something-for-new-rule/elm-review-package-tests/check-previews-compile.js index 011c17cb8..a577b2c98 100644 --- a/test/run-snapshots/elm-review-something-for-new-rule/elm-review-package-tests/check-previews-compile.js +++ b/test/run-snapshots/elm-review-something-for-new-rule/elm-review-package-tests/check-previews-compile.js @@ -129,7 +129,5 @@ function checkConstraint(exampleConfiguration, depName, constraint, version) { * @param {string} version */ function splitVersion(version) { - return version - .split('.') - .map((n) => Number.parseInt(n, 10)); + return version.split('.').map((n) => Number.parseInt(n, 10)); } diff --git a/test/run-snapshots/elm-review-something-for-new-rule/maintenance/update-examples-from-preview.js b/test/run-snapshots/elm-review-something-for-new-rule/maintenance/update-examples-from-preview.js index 534a2bdea..bd82369e8 100755 --- a/test/run-snapshots/elm-review-something-for-new-rule/maintenance/update-examples-from-preview.js +++ b/test/run-snapshots/elm-review-something-for-new-rule/maintenance/update-examples-from-preview.js @@ -47,10 +47,9 @@ function copyPreviewToExample(pathToPreviewFolder) { fs.copySync(pathToPreviewFolder, pathToExampleFolder, {overwrite: true}); const pathToElmJson = path.resolve(pathToExampleFolder, 'elm.json'); - const elmJson = - /** @type {ApplicationElmJson} */ ( - fs.readJsonSync(pathToElmJson) - ); + const elmJson = /** @type {ApplicationElmJson} */ ( + fs.readJsonSync(pathToElmJson) + ); // Remove the source directory pointing to the package's src/ elmJson['source-directories'] = elmJson['source-directories'].filter( diff --git a/test/run-snapshots/elm-review-something/elm-review-package-tests/check-previews-compile.js b/test/run-snapshots/elm-review-something/elm-review-package-tests/check-previews-compile.js index 011c17cb8..a577b2c98 100644 --- a/test/run-snapshots/elm-review-something/elm-review-package-tests/check-previews-compile.js +++ b/test/run-snapshots/elm-review-something/elm-review-package-tests/check-previews-compile.js @@ -129,7 +129,5 @@ function checkConstraint(exampleConfiguration, depName, constraint, version) { * @param {string} version */ function splitVersion(version) { - return version - .split('.') - .map((n) => Number.parseInt(n, 10)); + return version.split('.').map((n) => Number.parseInt(n, 10)); } diff --git a/test/run-snapshots/elm-review-something/maintenance/update-examples-from-preview.js b/test/run-snapshots/elm-review-something/maintenance/update-examples-from-preview.js index 534a2bdea..bd82369e8 100755 --- a/test/run-snapshots/elm-review-something/maintenance/update-examples-from-preview.js +++ b/test/run-snapshots/elm-review-something/maintenance/update-examples-from-preview.js @@ -47,10 +47,9 @@ function copyPreviewToExample(pathToPreviewFolder) { fs.copySync(pathToPreviewFolder, pathToExampleFolder, {overwrite: true}); const pathToElmJson = path.resolve(pathToExampleFolder, 'elm.json'); - const elmJson = - /** @type {ApplicationElmJson} */ ( - fs.readJsonSync(pathToElmJson) - ); + const elmJson = /** @type {ApplicationElmJson} */ ( + fs.readJsonSync(pathToElmJson) + ); // Remove the source directory pointing to the package's src/ elmJson['source-directories'] = elmJson['source-directories'].filter(