From e8db94e58f83fa5db5cf5a85a6ab916268c2bb73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Wed, 13 Sep 2017 14:57:56 +0800 Subject: [PATCH] Doc: add github link --- docs/src/doc.config.js | 6 +++--- test/unit/specs/coupon.spec.js | 9 --------- yarn.lock | 8 ++++---- 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/docs/src/doc.config.js b/docs/src/doc.config.js index 0e42554c6..7ab9edcd7 100644 --- a/docs/src/doc.config.js +++ b/docs/src/doc.config.js @@ -8,11 +8,11 @@ module.exports = { '微信小程序': 'https://github.com/youzan/zanui-weapp' }, footer: { - copyright: `2012-${(new Date()).getFullYear()} © youzanyun.com - 浙公网安备 33010602004354号 增值电信业务经营许可证:浙B2-20140331 - 浙ICP备13037466号`, + github: 'https://github.com/youzan/vant', nav: { '有赞官网': 'https://www.youzan.com/', - '有赞云': 'http://www.youzanyun.com/zanui', - '加入我们': 'https://job.youzan.com/' + '加入我们': 'https://job.youzan.com/', + '意见反馈': 'https://github.com/youzan/vant/issues' } }, nav: [ diff --git a/test/unit/specs/coupon.spec.js b/test/unit/specs/coupon.spec.js index 378edd553..2350607fa 100644 --- a/test/unit/specs/coupon.spec.js +++ b/test/unit/specs/coupon.spec.js @@ -155,7 +155,6 @@ describe('CouponList', () => { wrapper = mount(CouponList, { attachToDocument: true, propsData: { - show: true, chosenCoupon: -1, coupons: [coupon, discountCoupon], disabledCoupons: [disabledCoupon, disabledDiscountCoupon] @@ -166,9 +165,7 @@ describe('CouponList', () => { wrapper.vm.chosenCoupon = index; }); - // 弹出 popup setTimeout(() => { - expect(wrapper.find('.van-coupon-list')[0].hasStyle('display', 'none')).to.equal(false); wrapper.find('.van-coupon-item')[0].trigger('click'); setTimeout(() => { @@ -182,7 +179,6 @@ describe('CouponList', () => { wrapper = mount(CouponList, { attachToDocument: true, propsData: { - show: false, chosenCoupon: 0, displayedCouponIndex: 0, coupons: [coupon, discountCoupon], @@ -190,8 +186,6 @@ describe('CouponList', () => { } }); - wrapper.vm.show = true; - wrapper.vm.$on('change', (index) => { wrapper.vm.chosenCoupon = index; wrapper.vm.displayedCouponIndex = index; @@ -201,7 +195,6 @@ describe('CouponList', () => { wrapper.find('.van-coupon-list__close')[0].trigger('click'); setTimeout(() => { expect(wrapper.vm.chosenCoupon).to.equal(-1); - expect(wrapper.find('.van-coupon-list')[0].hasStyle('display', 'none')).to.equal(true); done(); }, 500); }, 500); @@ -257,7 +250,6 @@ describe('CouponList', () => { wrapper = mount(CouponList, { attachToDocument: true, propsData: { - show: true, chosenCoupon: 0, coupons: [coupon, discountCoupon, emptyCoupon], disabledCoupons: [disabledCoupon, disabledDiscountCoupon] @@ -307,7 +299,6 @@ describe('CouponList', () => { it('displayedCouponIndex out of range', (done) => { wrapper = mount(CouponList, { propsData: { - show: true, displayedCouponIndex: -100, coupons: [coupon, discountCoupon, emptyCoupon] } diff --git a/yarn.lock b/yarn.lock index 595547dbb..e34c64473 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7342,8 +7342,8 @@ vue-sfc-compiler@^0.0.2: vue-template-es2015-compiler "^1.5.3" vue-style-loader@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/vue-style-loader/-/vue-style-loader-3.0.1.tgz#c8b639bb2f24baf9d78274dc17e4f264c1deda08" + version "3.0.2" + resolved "https://registry.yarnpkg.com/vue-style-loader/-/vue-style-loader-3.0.2.tgz#eaeb299729fa3ee54717e907ce3c1e425ebae729" dependencies: hash-sum "^1.0.2" loader-utils "^1.0.2" @@ -7652,8 +7652,8 @@ yeast@0.1.2: resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419" zan-doc@^0.2.12: - version "0.2.13" - resolved "https://registry.yarnpkg.com/zan-doc/-/zan-doc-0.2.13.tgz#f7345493deacb8cee18c9807150c46c88f86073d" + version "0.2.14" + resolved "https://registry.yarnpkg.com/zan-doc/-/zan-doc-0.2.14.tgz#f5915e8e45fd10d2eae3e36d10949d22a7f9ac62" dependencies: cheerio "0.22.0" decamelize "^1.2.0"