Skip to content

Commit 69d13c4

Browse files
committed
Fix broken tests in BabelTransformerTests.cs
Change two Assert.AreEqual() calls to StringAssert.EndsWith(). This fixes the build.
1 parent 4c73590 commit 69d13c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/React.Tests/Core/BabelTransformerTests.cs

Lines changed: 2 additions & 2 deletions
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)