Skip to content

Commit 13a800f

Browse files
greenkeeperio-botlevithomason
authored andcommitted
Update chai-enzyme to version 0.6.0 🚀 (#796)
* chore(package): update chai-enzyme to version 0.6.0 https://greenkeeper.io/ * fix(Button-test): render() before match()
1 parent a119ad5 commit 13a800f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"babel-standalone": "^6.18.1",
6161
"brace": "^0.9.0",
6262
"chai": "^3.5.0",
63-
"chai-enzyme": "^0.5.2",
63+
"chai-enzyme": "^0.6.0",
6464
"connect-history-api-fallback": "^1.2.0",
6565
"copy-to-clipboard": "^3.0.5",
6666
"cross-env": "^3.1.3",

‎test/specs/elements/Button/Button-test.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,22 +113,22 @@ describe('Button', () => {
113113
const wrapper = shallow(<Button labelPosition='left' label='foo' />)
114114
wrapper.should.have.exactly(1).descendants('Label[pointing="right"]')
115115

116-
wrapper.children().at(0).should.match('.ui.label')
116+
wrapper.children().at(0).shallow().should.match('.ui.label')
117117
wrapper.children().at(1).should.match('button')
118118
})
119119
it('is after the button and pointing="left" when labelPosition="right"', () => {
120120
const wrapper = shallow(<Button labelPosition='right' label='foo' />)
121121
wrapper.should.have.exactly(1).descendants('Label[pointing="left"]')
122122

123123
wrapper.children().at(0).should.match('button')
124-
wrapper.children().at(1).should.match('.ui.label')
124+
wrapper.children().at(1).shallow().should.match('.ui.label')
125125
})
126126
it('is after the button and pointing="left" by default', () => {
127127
const wrapper = shallow(<Button label='foo' />)
128128
wrapper.should.have.exactly(1).descendants('Label[pointing="left"]')
129129

130130
wrapper.children().at(0).should.match('button')
131-
wrapper.children().at(1).should.match('.ui.label')
131+
wrapper.children().at(1).shallow().should.match('.ui.label')
132132
})
133133
})
134134

0 commit comments

Comments
 (0)