Skip to content

Commit

Permalink
Docs changes
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Mar 28, 2024
1 parent 2c376f6 commit be728e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ApprovalTests/EnvironmentSpecificTests.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ EmailTest.Testname.Microsoft_Windows_Server_2019_Datacenter.approved.eml
If this is run on a new machine, it could produce a new approval file. This can be confusing as you might not remember what the old system used to produce.

<!-- snippet: use_MachineSpecificReporter -->
<a id='snippet-use_machinespecificreporter'></a>
<a id='snippet-use_MachineSpecificReporter'></a>
```cs
[UseReporter(typeof(MachineSpecificReporter))]
```
<sup><a href='/src/ApprovalTests.Tests/Namer/ApprovalResultsTest.cs#L2-L4' title='Snippet source file'>snippet source</a> | <a href='#snippet-use_machinespecificreporter' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/ApprovalTests.Tests/Namer/ApprovalResultsTest.cs#L2-L4' title='Snippet source file'>snippet source</a> | <a href='#snippet-use_MachineSpecificReporter' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

If you use a MachineSpecificReporter and the existing approval file does not exist (or is empty), it will search or the last approved version from a different machine and copy it over as a starting point. This will always start with a line:
Expand Down

0 comments on commit be728e6

Please sign in to comment.