-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for .cjsx omitExt issue and fix #20
- Loading branch information
Zordius Chen
committed
Jan 12, 2016
1 parent
2db59a3
commit 3ad90ca
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
mocha = require 'mocha' | ||
assert = require 'assert' | ||
Component = require './Component' | ||
testlib = require './testlib' | ||
ReactDOM = require 'react-dom' | ||
|
||
mocha.describe 'Component.cjsx (tested by test7.cjsx)', -> | ||
mocha.it 'should render Hello World', -> | ||
node = testlib.renderComponent(Component) | ||
assert.equal('Hello World', ReactDOM.findDOMNode(node).innerHTML) |