Skip to content

Commit

Permalink
shallow render fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zackify committed Sep 16, 2015
1 parent cc911d2 commit 9732aaa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/legit-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ var Test = (function () {
return Test;
})();

function TestWrapper(component) {
return new Test(component);
function TestWrapper(component, config) {
return new Test(component, config);
}

module.exports = exports['default'];
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "legit-tests",
"version": "0.3.2",
"version": "0.3.3",
"description": "a chainable testing library for React",
"main": "lib/legit-tests.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/legit-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ class Test {

}

export default function TestWrapper(component){
return new Test(component)
export default function TestWrapper(component, config){
return new Test(component, config)
}
2 changes: 1 addition & 1 deletion tests/shallowRender.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('Shallow Render', () => {
it('should render the component', () => {
Test(<TestComponent test="wow"/>, {shallow: true})
.test(function() {
expect(this.component.props.test).to.be.equal("wow")
expect(this.component).to.be.ok
})
});

Expand Down

0 comments on commit 9732aaa

Please sign in to comment.