Skip to content

Commit 13c9772

Browse files
committed
d updated markdown snippets
1 parent 0feac60 commit 13c9772

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

approvaltests/docs/Reporters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ All the [verify](./reference/Verify.md) functions have an overload that takes an
8484
Options options = new Options().withReporter(BeyondCompareReporter.INSTANCE);
8585
Approvals.verify(objectUnderTest, options);
8686
```
87-
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/ApprovalsTest.java#L22-L25' title='Snippet source file'>snippet source</a> | <a href='#snippet-configure_reporter_with_options' title='Start of snippet'>anchor</a></sup>
87+
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/ApprovalsTest.java#L24-L27' title='Snippet source file'>snippet source</a> | <a href='#snippet-configure_reporter_with_options' title='Start of snippet'>anchor</a></sup>
8888
<!-- endSnippet -->
8989

9090
### Class and Method level

approvaltests/docs/Scrubbers.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ For example:
3535
```java
3636
Approvals.verifyAll("guids", guids, new Options(Scrubbers::scrubGuid));
3737
```
38-
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/scrubbers/ScrubberTest.java#L39-L41' title='Snippet source file'>snippet source</a> | <a href='#snippet-guid-scrubbing-2' title='Start of snippet'>anchor</a></sup>
38+
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/scrubbers/ScrubberTest.java#L40-L42' title='Snippet source file'>snippet source</a> | <a href='#snippet-guid-scrubbing-2' title='Start of snippet'>anchor</a></sup>
3939
<!-- endSnippet -->
4040

4141
## Guid Scrubbing
@@ -50,7 +50,7 @@ String[] guids = {"2fd78d4a-ad49-447d-96a8-deda585a9aa5",
5050
"2fd78d4a-ad49-447d-96a8-deda585a9aa5",
5151
"2fd78d4a-ad49-447d-96a8-deda585a9aa5 and text"};
5252
```
53-
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/scrubbers/ScrubberTest.java#L32-L38' title='Snippet source file'>snippet source</a> | <a href='#snippet-guid-scrubbing-1' title='Start of snippet'>anchor</a></sup>
53+
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/scrubbers/ScrubberTest.java#L33-L39' title='Snippet source file'>snippet source</a> | <a href='#snippet-guid-scrubbing-1' title='Start of snippet'>anchor</a></sup>
5454
<!-- endSnippet -->
5555
You can make this output deterministic by using a scrubber in the options.
5656
For example:
@@ -59,7 +59,7 @@ For example:
5959
```java
6060
Approvals.verifyAll("guids", guids, new Options(Scrubbers::scrubGuid));
6161
```
62-
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/scrubbers/ScrubberTest.java#L39-L41' title='Snippet source file'>snippet source</a> | <a href='#snippet-guid-scrubbing-2' title='Start of snippet'>anchor</a></sup>
62+
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/scrubbers/ScrubberTest.java#L40-L42' title='Snippet source file'>snippet source</a> | <a href='#snippet-guid-scrubbing-2' title='Start of snippet'>anchor</a></sup>
6363
<!-- endSnippet -->
6464
This will result in the following `.approved.txt` file
6565
<!-- snippet: /src/test/java/org/approvaltests/scrubbers/ScrubberTest.scrubGuids.approved.txt -->
@@ -156,7 +156,7 @@ Scrubber scrubber = Scrubbers.scrubAll(portScrubber, dateScrubber, signatureScru
156156
Approvals.verify("http://127.0.0.1:55079/foo/bar?Date=20210505T091112Z&Signature=4a7dd6f09c1e",
157157
new Options(scrubber));
158158
```
159-
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/scrubbers/ScrubberTest.java#L46-L53' title='Snippet source file'>snippet source</a> | <a href='#snippet-multiscrubber' title='Start of snippet'>anchor</a></sup>
159+
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/scrubbers/ScrubberTest.java#L47-L54' title='Snippet source file'>snippet source</a> | <a href='#snippet-multiscrubber' title='Start of snippet'>anchor</a></sup>
160160
<!-- endSnippet -->
161161

162162
will result in

approvaltests/docs/how_to/CaptureFilesFromCI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Here is an example:
3232
CustomPanel panel = new CustomPanel(true, 20);
3333
AwtApprovals.verify(panel, new Options(new FileCaptureReporter()));
3434
```
35-
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/awt/ApprovalsTest.java#L32-L35' title='Snippet source file'>snippet source</a> | <a href='#snippet-file_capture_reporter_example' title='Start of snippet'>anchor</a></sup>
35+
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/awt/ApprovalsTest.java#L39-L42' title='Snippet source file'>snippet source</a> | <a href='#snippet-file_capture_reporter_example' title='Start of snippet'>anchor</a></sup>
3636
<!-- endSnippet -->
3737

3838
The example above demonstrates how to use FileCaptureReporter with ApprovalTests to capture received files on test failure.

approvaltests/docs/how_to/TestAVarietyOfValues.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If you have more than one parameter that you want to vary, check out [Testing Co
2525
String[] inputs = {"input.value1", "input.value2"};
2626
Approvals.verifyAll("TITLE", inputs, s -> "placeholder " + s);
2727
```
28-
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/ApprovalsTest.java#L44-L47' title='Snippet source file'>snippet source</a> | <a href='#snippet-verifyallstartingpoint' title='Start of snippet'>anchor</a></sup>
28+
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/ApprovalsTest.java#L46-L49' title='Snippet source file'>snippet source</a> | <a href='#snippet-verifyallstartingpoint' title='Start of snippet'>anchor</a></sup>
2929
<!-- endSnippet -->
3030

3131
2. Modify the input container for your chosen values.

approvaltests/docs/reference/AwtApprovals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ for every frame. Here is an example for a simple expanding box:
3636
SquareDrawer squareDrawer = new SquareDrawer();
3737
AwtApprovals.verifySequence(5, f -> squareDrawer.setSquareSize(f * 10));
3838
```
39-
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/awt/ApprovalsTest.java#L41-L44' title='Snippet source file'>snippet source</a> | <a href='#snippet-sequencepaintables' title='Start of snippet'>anchor</a></sup>
39+
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/awt/ApprovalsTest.java#L48-L51' title='Snippet source file'>snippet source</a> | <a href='#snippet-sequencepaintables' title='Start of snippet'>anchor</a></sup>
4040
<!-- endSnippet -->
4141

4242
**Note**: Method overloads allow specifying the time between frames or the time for each frame.

approvaltests/docs/reference/StoryBoard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Here is a simple example
1717
```java
1818
Approvals.verify(new StoryBoard().add(gameOfLife).addFrames(3, gameOfLife::advance));
1919
```
20-
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/StoryBoardTest.java#L22-L24' title='Snippet source file'>snippet source</a> | <a href='#snippet-storyboardexample' title='Start of snippet'>anchor</a></sup>
20+
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/StoryBoardTest.java#L23-L25' title='Snippet source file'>snippet source</a> | <a href='#snippet-storyboardexample' title='Start of snippet'>anchor</a></sup>
2121
<!-- endSnippet -->
2222

2323
which produces

0 commit comments

Comments
 (0)