From 653799975b245fd873857539c00200857f3fbb53 Mon Sep 17 00:00:00 2001 From: Marcel Erz Date: Fri, 27 Jun 2025 05:15:48 -0700 Subject: [PATCH] fix test manual section markers and update snapshots --- src/__tests__/SignedCode-test.js | 4 ++-- src/__tests__/SignedCodeBuilder-test.js | 4 ++-- src/__tests__/__snapshots__/SignedCode-test.js.snap | 9 ++++++++- .../__snapshots__/SignedCodeBuilder-test.js.snap | 4 +++- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/__tests__/SignedCode-test.js b/src/__tests__/SignedCode-test.js index 0870b2d..ba7f3af 100644 --- a/src/__tests__/SignedCode-test.js +++ b/src/__tests__/SignedCode-test.js @@ -22,13 +22,13 @@ import TestModule from "TestModule"; TestModule.someCall(24, 67); function printEverything() { - // + // console.log("42 is the answer!"); // } function someOtherFunction() { - // + // console.log("I don't know"); // } diff --git a/src/__tests__/SignedCodeBuilder-test.js b/src/__tests__/SignedCodeBuilder-test.js index 6453494..468080d 100644 --- a/src/__tests__/SignedCodeBuilder-test.js +++ b/src/__tests__/SignedCodeBuilder-test.js @@ -23,13 +23,13 @@ import TestModule from "TestModule"; TestModule.someCall(24, 67); function printEverything() { - // + // console.log("42 is the answer!"); // } function someOtherFunction() { - // + // console.log("I don't know"); // } diff --git a/src/__tests__/__snapshots__/SignedCode-test.js.snap b/src/__tests__/__snapshots__/SignedCode-test.js.snap index 08d8a9e..e870343 100644 --- a/src/__tests__/__snapshots__/SignedCode-test.js.snap +++ b/src/__tests__/__snapshots__/SignedCode-test.js.snap @@ -1,3 +1,10 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`signedCode gets the manual sections 1`] = `Object {}`; +exports[`signedCode gets the manual sections 1`] = `Object { + "init-code": Object { + "code": "\n console.log(\"42 is the answer!\");\n ", + }, + "more-code": Object { + "code": "\n console.log(\"I don't know\");\n ", + }, +}`; diff --git a/src/__tests__/__snapshots__/SignedCodeBuilder-test.js.snap b/src/__tests__/__snapshots__/SignedCodeBuilder-test.js.snap index 2a17537..2b5ed8b 100644 --- a/src/__tests__/__snapshots__/SignedCodeBuilder-test.js.snap +++ b/src/__tests__/__snapshots__/SignedCodeBuilder-test.js.snap @@ -51,7 +51,9 @@ let thereB = 'light'; exports[`signedCodeBuilder accepts previous code 1`] = ` "let thereA = 'light'; -// let thereD = 'light';// +// + console.log("42 is the answer!"); + // let thereB = 'light'; " `;