Skip to content

Commit 9dc1d79

Browse files
committed
Merge pull request reactjs#170 from radnor/patch-1
Fix broken tests in BabelTransformerTests.cs
2 parents 4c73590 + 69d13c4 commit 9dc1d79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/React.Tests/Core/BabelTransformerTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public void ShouldTransformJsxIfFileCacheHashInvalid()
111111
)).Returns(new JavaScriptWithSourceMap { Code = "React.DOM.div('Hello World')" });
112112

113113
var result = _babel.TransformFile("foo.jsx");
114-
Assert.AreEqual("React.DOM.div('Hello World')", result);
114+
StringAssert.EndsWith("React.DOM.div('Hello World')", result);
115115
}
116116

117117
[Test]
@@ -128,7 +128,7 @@ public void ShouldTransformJsxIfNoCache()
128128
)).Returns(new JavaScriptWithSourceMap { Code = "React.DOM.div('Hello World')" });
129129

130130
var result = _babel.TransformFile("foo.jsx");
131-
Assert.AreEqual("React.DOM.div('Hello World')", result);
131+
StringAssert.EndsWith("React.DOM.div('Hello World')", result);
132132
}
133133

134134
[Test]

0 commit comments

Comments
 (0)