[bugfix] AddressEdit: setAreaCode now work (#524)

This commit is contained in:
neverland
2018-01-10 14:14:06 +08:00
committed by GitHub
parent 7278d90c12
commit 0bb1fe69a3
3 changed files with 12 additions and 10 deletions

View File

@@ -17,13 +17,13 @@ describe('AddressEdit', () => {
expect(wrapper.find('.van-field__control')[2].element.value).to.equal('');
expect(
wrapper.find('.van-address-edit__area .van-cell__value span')[0].text()
).to.equal('选择省');
).to.equal('选择省');
expect(
wrapper.find('.van-address-edit__area .van-cell__value span')[1].text()
).to.equal('选择市');
).to.equal('选择市');
expect(
wrapper.find('.van-address-edit__area .van-cell__value span')[2].text()
).to.equal('选择区');
).to.equal('选择区');
});
it('create a AddressEdit with props', () => {