better description

This commit is contained in:
oyv1cent 2019-03-13 16:04:24 +08:00
parent 2c00b6fdee
commit 1bf44ee08c

View file

@ -13,7 +13,7 @@ describe('Affix.vue', () => {
done(); done();
}); });
it('should create a Affix component with slot', done => { it('should create a Affix component contain slot', done => {
vm = createVue(` vm = createVue(`
<Affix> <Affix>
<span class="demo-affix">Fixed at the top</span> <span class="demo-affix">Fixed at the top</span>
@ -24,7 +24,7 @@ describe('Affix.vue', () => {
done(); done();
}); });
it('set offset-top props', done => { it('only set offset-top props', done => {
vm = createVue(` vm = createVue(`
<div> <div>
<Affix :offset-top="20"> <Affix :offset-top="20">
@ -45,7 +45,7 @@ describe('Affix.vue', () => {
}, 100); }, 100);
}); });
it('set offset-bottom props', done => { it('only set offset-bottom props', done => {
vm = createVue(` vm = createVue(`
<div> <div>
<div style="width: 100%; height: 2000px"></div> <div style="width: 100%; height: 2000px"></div>
@ -99,7 +99,7 @@ describe('Affix.vue', () => {
}, 100); }, 100);
}); });
it('both props not set, should fixed and top equal 0', done => { it('both props are not set, should fixed top and top equal 0px', done => {
vm = createVue(` vm = createVue(`
<div> <div>
<Affix> <Affix>