From 3bd9d1063e7a0d7e18ca4c393722e198c6420400 Mon Sep 17 00:00:00 2001 From: "Christopher J. Brody" Date: Tue, 5 Nov 2019 19:35:30 -0500 Subject: [PATCH] remove tests/pipe-function-formatting no longer needed --- .../__snapshots__/jsfmt.spec.js.snap | 111 ------------------ tests/pipe-function-formatting/jsfmt.spec.js | 1 - 2 files changed, 112 deletions(-) delete mode 100644 tests/pipe-function-formatting/__snapshots__/jsfmt.spec.js.snap delete mode 100644 tests/pipe-function-formatting/jsfmt.spec.js diff --git a/tests/pipe-function-formatting/__snapshots__/jsfmt.spec.js.snap b/tests/pipe-function-formatting/__snapshots__/jsfmt.spec.js.snap deleted file mode 100644 index 6fe0eb7f590c..000000000000 --- a/tests/pipe-function-formatting/__snapshots__/jsfmt.spec.js.snap +++ /dev/null @@ -1,111 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`pipe-function-calls-with-comments.js 1`] = ` -====================================options===================================== -parsers: ["babel", "flow", "typescript"] -printWidth: 80 - | printWidth -=====================================input====================================== -// input with some comments added to avoid reformatting - -(() => { - pipe( - // add a descriptive comment here - timelines, - everyCommitTimestamps, - A.sort(ordDate), - A.head - ); - - pipe( - // add a descriptive comment here - serviceEventFromMessage(msg), - TE.chain( - flow( - // add a descriptive comment here - publishServiceEvent(analytics), - TE.mapLeft(nackFromError) - ) - ) - )() - .then(messageResponse(logger, msg)) - .catch((err: Error) => { - logger.error( - pipe( - // add a descriptive comment here - O.fromNullable(err.stack), - O.getOrElse(constant(err.message)) - ) - ); - process.exit(1); - }); - - pipe( - // add a descriptive comment here - Changelog.timestampOfFirstCommit([[commit]]), - O.toUndefined - ); - - chain( - flow( - // add a descriptive comment here - getUploadUrl, - E.mapLeft(Errors.unknownError), - TE.fromEither - ) - ); -})(); - -=====================================output===================================== -// input with some comments added to avoid reformatting - -(() => { - pipe( - // add a descriptive comment here - timelines, - everyCommitTimestamps, - A.sort(ordDate), - A.head - ); - - pipe( - // add a descriptive comment here - serviceEventFromMessage(msg), - TE.chain( - flow( - // add a descriptive comment here - publishServiceEvent(analytics), - TE.mapLeft(nackFromError) - ) - ) - )() - .then(messageResponse(logger, msg)) - .catch((err: Error) => { - logger.error( - pipe( - // add a descriptive comment here - O.fromNullable(err.stack), - O.getOrElse(constant(err.message)) - ) - ); - process.exit(1); - }); - - pipe( - // add a descriptive comment here - Changelog.timestampOfFirstCommit([[commit]]), - O.toUndefined - ); - - chain( - flow( - // add a descriptive comment here - getUploadUrl, - E.mapLeft(Errors.unknownError), - TE.fromEither - ) - ); -})(); - -================================================================================ -`; diff --git a/tests/pipe-function-formatting/jsfmt.spec.js b/tests/pipe-function-formatting/jsfmt.spec.js deleted file mode 100644 index eb85eda6bd02..000000000000 --- a/tests/pipe-function-formatting/jsfmt.spec.js +++ /dev/null @@ -1 +0,0 @@ -run_spec(__dirname, ["babel", "flow", "typescript"]);