Skip to content

Commit 93d885e

Browse files
committed
Fixed a error in unit tests to check the execution of promises
1 parent cefe6df commit 93d885e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/JavaScriptEngineSwitcher.Tests/Es2015TestsBase.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Text;
1+
using System;
2+
using System.Text;
23

34
using Xunit;
45

@@ -31,9 +32,9 @@ function rejectCallback(reason) {
3132
3233
successfulWork.then(resolveCallback, rejectCallback);
3334
unsuccessfulWork.then(resolveCallback, rejectCallback);";
34-
const string targetOutput = @"Resolved: Success!
35-
Rejected: Fail!
36-
";
35+
string targetOutput = "Resolved: Success!" + Environment.NewLine +
36+
"Rejected: Fail!" + Environment.NewLine
37+
;
3738

3839
// Act
3940
string output;

0 commit comments

Comments
 (0)