Skip to content

Commit 9f29b35

Browse files
committed
added no dom test
1 parent 6b670e7 commit 9f29b35

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
node_modules
2-
lib
2+
legit-tests.js
3+
dom.js
4+
middleware.js
5+
middleware
6+
no-dom.js
7+
tests.js

tests/no-dom.jsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import Test from '../src/no-dom'
2+
import {Find} from '../src/middleware'
3+
import { expect } from 'chai';
4+
5+
import TestComponent from './component'
6+
7+
describe('no dom', () => {
8+
9+
it('should render the component', () => {
10+
Test(<TestComponent test="wow"/>, {shallow: true})
11+
.test(function() {
12+
expect(this.instance).to.be.ok
13+
})
14+
});
15+
});

0 commit comments

Comments
 (0)