Skip to content

Commit a4971bb

Browse files
committed
#9 upgraded karma, attached app to dom document body
1 parent db2f0b3 commit a4971bb

File tree

3 files changed

+77
-121
lines changed

3 files changed

+77
-121
lines changed

package-lock.json

+75-119
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"jquery": "^2.1.4",
5858
"jquery-ui": "~1.10.5",
5959
"json-loader": "^0.5.7",
60-
"karma": "^0.13.9",
60+
"karma": "^1.7.1",
6161
"karma-chai": "^0.1.0",
6262
"karma-chrome-launcher": "^2.2.0",
6363
"karma-coverage": "^0.5.3",

test/components/AppTest.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('MainComponent', () => {
2727
describe('<Main />', () => {
2828
it.only('should have its component name as default className', () => {
2929
debugger
30-
const wrapper = mount(<Main />)
30+
const wrapper = mount(<Main />, { attachTo: document.body })
3131
expect(wrapper.children().is('.sp-main-container')).to.equal(true)
3232
})
3333
})

0 commit comments

Comments
 (0)