Skip to content

Commit

Permalink
feat: Debugging to the playground
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik1999 committed Mar 16, 2023
1 parent 05113ba commit 6b3c8f1
Show file tree
Hide file tree
Showing 7 changed files with 493 additions and 65 deletions.
17 changes: 17 additions & 0 deletions playground/__tests__/Utils.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import "@testing-library/jest-dom";
import {
addNewlineAfterWhitespace,
checkFields,
checkField,
checkInputs,
Expand Down Expand Up @@ -170,3 +171,19 @@ Did you prove the program first?`,
});
});
});

/** Testing the addNewlineAfterWhitespace function */

const testStr = 'This is a [test string] with some\nwhitespace.';
describe("addNewlineAfterWhitespace function", () => {
it("should do what it is told", async () => {
expect(addNewlineAfterWhitespace(testStr)).toStrictEqual(`This
is
a
[test string]
with
some
whitespace.`
);
});
});
Loading

0 comments on commit 6b3c8f1

Please sign in to comment.