Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

# unexpected-react

[![Greenkeeper badge](https://badges.greenkeeper.io/bruderstein/unexpected-react.svg)](https://greenkeeper.io/)

Plugin for [unexpected](https://unexpected.js.org) to allow for testing the full virtual DOM, and
against the shallow renderer (replaces [unexpected-react-shallow](https://github.com/bruderstein/unexpected-react-shallow))

Expand Down
25 changes: 15 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
"react-dom": "^0.14.0 || ^15.0.0"
},
"devDependencies": {
"babel-cli": "6.10.1",
"babel-core": "6.9.1",
"babel-eslint": "^6.1.2",
"babel-cli": "6.24.0",
"babel-core": "6.24.0",
"babel-eslint": "^7.2.0",
"babel-plugin-transform-object-rest-spread": "^6.19.0",
"babel-preset-es2015": "6.9.0",
"babel-preset-react": "6.5.0",
"babel-preset-es2015": "6.24.0",
"babel-preset-react": "6.23.0",
"babel-register": "^6.14.0",
"bluebird": "^3.4.6",
"coveralls": "^2.11.9",
Expand All @@ -60,25 +60,25 @@
"gulp-json-editor": "^2.2.1",
"immutable": "^3.7.6",
"istanbul": "^0.4.3",
"jest": "^17.0.1",
"jsdom": "^6.5.1",
"jest": "^19.0.2",
"jsdom": "^9.12.0",
"magicpen": "^5.7.0",
"mocha": "^2.3.3",
"mocha": "^3.2.0",
"mocha-lcov-reporter": "^1.2.0",
"mock-fs": "^4.2.0",
"object-assign": "^4.0.1",
"react": "^15.4.2",
"react-addons-test-utils": "^15.4.2",
"react-dom": "^15.4.2",
"react-test-renderer": "^15.4.2",
"sinon": "^1.17.6",
"sinon": "^2.1.0",
"unexpected": "^10.13.2",
"unexpected-documentation-site-generator": "^4.1.0",
"unexpected-markdown": "^1.7.1",
"unexpected-sinon": "^10.5.0"
},
"dependencies": {
"jest-matchers": ">=16.0.0 <19.0.0",
"jest-matchers": ">=16.0.0 <20.0.0",
"js-writer": "^1.2.0",
"magicpen-prism": "^2.2.1",
"react-render-hook": "^0.1.3",
Expand All @@ -87,5 +87,10 @@
"unexpected-htmllike-raw-adapter": "^1.0.0",
"unexpected-htmllike-reactrendered-adapter": "^2.0.1",
"unexpected-htmllike-testrenderer-adapter": "^1.0.0"
},
"greenkeeper": {
"ignore": [
"jest-matchers"
]
}
}
8 changes: 4 additions & 4 deletions src/tests/general/unexpected-react-deep.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ describe('unexpected-react (deep rendering)', () => {
const component = TestUtils.renderIntoDocument(<CustomComp className="bar" childCount={3} />);
return expect(component, 'queried for', <span className="2" />)
.then(span => {
expect(span, 'to be a', HTMLElement);
expect(span, 'to be a', window.HTMLElement);
expect(span, 'to satisfy', { className: '2' });
});
});
Expand All @@ -538,7 +538,7 @@ describe('unexpected-react (deep rendering)', () => {
const component = TestUtils.renderIntoDocument(<CustomComp className="bar" childCount={3} />);
return expect(component, 'queried for', <span className={ expect.it('to eventually have value', '2')} />)
.then(span => {
expect(span, 'to be a', HTMLElement);
expect(span, 'to be a', window.HTMLElement);
expect(span, 'to satisfy', { className: '2' });
});
});
Expand All @@ -548,7 +548,7 @@ describe('unexpected-react (deep rendering)', () => {
const component = TestUtils.renderIntoDocument(<CustomComp className="bar" childCount={3} />);
return expect(component, 'queried for', <div><span queryTarget className={ expect.it('to eventually have value', '2')} /></div>)
.then(span => {
expect(span, 'to be a', HTMLElement);
expect(span, 'to be a', window.HTMLElement);
expect(span, 'to satisfy', { className: '2' });
});
});
Expand Down Expand Up @@ -926,7 +926,7 @@ describe('unexpected-react (deep rendering)', () => {
'with event', 'click', {},
'queried for', <TodoItem id={2}><div queryTarget /></TodoItem>)
.then(div => {
expect(div, 'to be a', HTMLElement);
expect(div, 'to be a', window.HTMLElement);
expect(div, 'to satisfy', { tagName: 'DIV' });
});
});
Expand Down
Loading