Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit effd770

Browse files
committed
Fix JSX unit test
1 parent 91f8d6a commit effd770

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ MANIFEST
66
build/
77
node_modules
88
react/js
9+
*~

react/test/files/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var testComponent =
44
React.DOM.div(null,
55
React.DOM.ul(null,
6-
React.DOM.li(null, "Hello"),
6+
React.DOM.li(null, "Hello"),
77
React.DOM.li(null, "World")
88
)
99
);

react/test/jsx.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919

2020

2121
class TestJSXTransformer(TestCase):
22-
22+
2323
def test_transform(self):
2424
jsx_path = join(TEST_ROOT, 'files/test.jsx')
2525
js_path = join(TEST_ROOT, 'files/test.js')
26-
26+
2727
with open(js_path, 'rU') as js:
2828
self.assertEquals(
2929
jsx.transform(jsx_path),
30-
js.read())
30+
unicode(js.read()))
3131

3232
malformed_path = join(TEST_ROOT, 'files/malformed.jsx')
3333
self.assertRaises(

0 commit comments

Comments
 (0)