Skip to content

Commit 39e5476

Browse files
committed
- t fix test
1 parent 17ccb93 commit 39e5476

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

approvaltests-tests/src/test/java/org/approvaltests/inline/InlineApprovalsTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,12 @@ void testSemiAutomatic()
148148
void testAutomatic()
149149
{
150150
var expected = """
151-
hello Oskar
152-
""";
151+
hello Oskar
152+
""";
153153
Options options = new Options().inline("", InlineOptions.automatic());
154+
Mutable<String> result = hijackInlineReporter(options);
154155
assertApprovalFailure("hello Oskar", options,
155-
e -> assertEquals(expected, hijackInlineReporter(options).get()));
156+
e -> assertEquals(expected, result.get()));
156157
}
157158
private static void assertApprovalFailure(String actual, Options options, Action1<Throwable> azzert)
158159
{

0 commit comments

Comments
 (0)