Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/__tests__/SignedCode-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ import TestModule from "TestModule";
TestModule.someCall(24, 67);

function printEverything() {
// <Manual-Section init-code START>
// <Manual-Section START init-code>
console.log("42 is the answer!");
// <Manual-Section END>
}

function someOtherFunction() {
// <Manual-Section more-code START>
// <Manual-Section START more-code>
console.log("I don't know");
// <Manual-Section END>
}
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/SignedCodeBuilder-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ import TestModule from "TestModule";
TestModule.someCall(24, 67);

function printEverything() {
// <Manual-Section init-code START>
// <Manual-Section START init-code>
console.log("42 is the answer!");
// <Manual-Section END>
}

function someOtherFunction() {
// <Manual-Section more-code START>
// <Manual-Section START more-code>
console.log("I don't know");
// <Manual-Section END>
}
Expand Down
9 changes: 8 additions & 1 deletion src/__tests__/__snapshots__/SignedCode-test.js.snap
Original file line number Diff line number Diff line change
@@ -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 ",
},
}`;
4 changes: 3 additions & 1 deletion src/__tests__/__snapshots__/SignedCodeBuilder-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ let thereB = 'light';

exports[`signedCodeBuilder accepts previous code 1`] = `
"let thereA = 'light';
// <Manual-Section START init-code>let thereD = 'light';// <Manual-Section END>
// <Manual-Section START init-code>
console.log("42 is the answer!");
// <Manual-Section END>
let thereB = 'light';
"
`;
Loading