Skip to content

Commit 7a33e84

Browse files
authored
Make eval test resilient to error format (#1278)
1 parent 668f2c5 commit 7a33e84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/PuppeteerSharp.Tests/PageTests/EvaluateTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ public async Task ShouldRejectPromiseWithExeption()
125125
{
126126
var exception = await Assert.ThrowsAsync<EvaluationFailedException>(() =>
127127
{
128-
return Page.EvaluateFunctionAsync("() => not.existing.object.property");
128+
return Page.EvaluateFunctionAsync("() => not_existing_object.property");
129129
});
130130

131-
Assert.Contains("not is not defined", exception.Message);
131+
Assert.Contains("not_existing_object", exception.Message);
132132
}
133133

134134
[Fact]

0 commit comments

Comments
 (0)