Commit 1bf44ee08c1d72f50df8c30f83527b1f519fcd06
1 parent
2c00b6fd
better description
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
test/unit/specs/affix.spec.js
@@ -13,7 +13,7 @@ describe('Affix.vue', () => { | @@ -13,7 +13,7 @@ describe('Affix.vue', () => { | ||
13 | done(); | 13 | done(); |
14 | }); | 14 | }); |
15 | 15 | ||
16 | - it('should create a Affix component with slot', done => { | 16 | + it('should create a Affix component contain slot', done => { |
17 | vm = createVue(` | 17 | vm = createVue(` |
18 | <Affix> | 18 | <Affix> |
19 | <span class="demo-affix">Fixed at the top</span> | 19 | <span class="demo-affix">Fixed at the top</span> |
@@ -24,7 +24,7 @@ describe('Affix.vue', () => { | @@ -24,7 +24,7 @@ describe('Affix.vue', () => { | ||
24 | done(); | 24 | done(); |
25 | }); | 25 | }); |
26 | 26 | ||
27 | - it('set offset-top props', done => { | 27 | + it('only set offset-top props', done => { |
28 | vm = createVue(` | 28 | vm = createVue(` |
29 | <div> | 29 | <div> |
30 | <Affix :offset-top="20"> | 30 | <Affix :offset-top="20"> |
@@ -45,7 +45,7 @@ describe('Affix.vue', () => { | @@ -45,7 +45,7 @@ describe('Affix.vue', () => { | ||
45 | }, 100); | 45 | }, 100); |
46 | }); | 46 | }); |
47 | 47 | ||
48 | - it('set offset-bottom props', done => { | 48 | + it('only set offset-bottom props', done => { |
49 | vm = createVue(` | 49 | vm = createVue(` |
50 | <div> | 50 | <div> |
51 | <div style="width: 100%; height: 2000px"></div> | 51 | <div style="width: 100%; height: 2000px"></div> |
@@ -99,7 +99,7 @@ describe('Affix.vue', () => { | @@ -99,7 +99,7 @@ describe('Affix.vue', () => { | ||
99 | }, 100); | 99 | }, 100); |
100 | }); | 100 | }); |
101 | 101 | ||
102 | - it('both props not set, should fixed and top equal 0', done => { | 102 | + it('both props are not set, should fixed top and top equal 0px', done => { |
103 | vm = createVue(` | 103 | vm = createVue(` |
104 | <div> | 104 | <div> |
105 | <Affix> | 105 | <Affix> |