developit / developit/preact-jsx-chai

jsx render issue

Open
#42 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
56
Forks
7
PR merge metrics
No merged PRs in 30d

Description

hi @developit , I wrote a simple example, but it didn't run as expect.

```
function Cmp() {
return

cmp

}
class Test extends Component {
render() {
return (

);
}
}

describe('Preact Test', function() {
it('', function() {
expect().to.deep.equal(

cmp
);
});
});

```

the error message is
![image](https://cloud.githubusercontent.com/assets/543407/25037900/569a37f4-212e-11e7-9f13-99a0b952b3fb.png)

```
Preact Test

AssertionError: expected '

\n \n
' to equal '
\n
cmp
\n
'

Chrome 55.0.2883 (Mac OS X 10.11.4) Preact Test FAILED
AssertionError: expected '

\n \n
' to equal '
\n
cmp
\n
'

Chrome 55.0.2883 (Mac OS X 10.11.4): Executed 1 of 1 (1 FAILED) ERROR (1.362 secs / 0.005 secs)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.