Skip to content

Commit

Permalink
Make eval test resilient to error format (#1278)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok authored Sep 17, 2019
1 parent 668f2c5 commit 7a33e84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PuppeteerSharp.Tests/PageTests/EvaluateTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ public async Task ShouldRejectPromiseWithExeption()
{
var exception = await Assert.ThrowsAsync<EvaluationFailedException>(() =>
{
return Page.EvaluateFunctionAsync("() => not.existing.object.property");
return Page.EvaluateFunctionAsync("() => not_existing_object.property");
});

Assert.Contains("not is not defined", exception.Message);
Assert.Contains("not_existing_object", exception.Message);
}

[Fact]
Expand Down

0 comments on commit 7a33e84

Please sign in to comment.