Skip to content

Commit

Permalink
#9 upgraded karma, attached app to dom document body
Browse files Browse the repository at this point in the history
  • Loading branch information
abbr committed Oct 8, 2017
1 parent db2f0b3 commit a4971bb
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 121 deletions.
194 changes: 75 additions & 119 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"jquery": "^2.1.4",
"jquery-ui": "~1.10.5",
"json-loader": "^0.5.7",
"karma": "^0.13.9",
"karma": "^1.7.1",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage": "^0.5.3",
Expand Down
2 changes: 1 addition & 1 deletion test/components/AppTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('MainComponent', () => {
describe('<Main />', () => {
it.only('should have its component name as default className', () => {
debugger
const wrapper = mount(<Main />)
const wrapper = mount(<Main />, { attachTo: document.body })
expect(wrapper.children().is('.sp-main-container')).to.equal(true)
})
})

0 comments on commit a4971bb

Please sign in to comment.