Skip to content

Commit 2bc7ee0

Browse files
isidoreJayBazuziScottBob
committed
. e scrubbers
Co-Authored-By: Jay Bazuzi <[email protected]> Co-Authored-By: Scott Wierschem <[email protected]>
1 parent 18a0e7d commit 2bc7ee0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.windsurf/UnitTestStyleGuide.process.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,14 @@
1414
### Dates, GUIDS and other non-deterministic values
1515

1616
If you are printing dates, guids, or any other non-deterministic values to an `.approved.` file.
17-
Please read [Scrubbers](../approvaltests/docs/Scrubbers.md) and add on Options to the Approvals.verify call.
17+
Please read [Scrubbers](../approvaltests/docs/Scrubbers.md) and add on Options to the Approvals.verify call.
18+
19+
Example:
20+
21+
```java
22+
Approvals.verifyAll("guids", guids, new Options(Scrubbers::scrubGuid));
23+
```
24+
or
25+
```java
26+
Approvals.verify("created at 03:14:15", new Options().withScrubber(DateScrubber.getScrubberFor("00:00:00")));
27+
```

0 commit comments

Comments
 (0)