mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] List: fix typo in test cases
This commit is contained in:
parent
34923c7513
commit
094380416e
@ -108,11 +108,11 @@ export default sfc({
|
||||
},
|
||||
|
||||
render(h) {
|
||||
const placeholder = <div ref="placeholder" class={bem('placeholder')}/>;
|
||||
const Placeholder = <div ref="placeholder" class={bem('placeholder')}/>;
|
||||
|
||||
return (
|
||||
<div class={bem()} role="feed" aria-busy={this.loading}>
|
||||
{this.direction === 'down' ? this.slots() : placeholder}
|
||||
{this.direction === 'down' ? this.slots() : Placeholder}
|
||||
{this.loading && (
|
||||
<div class={bem('loading')} key="loading">
|
||||
{this.slots('loading') || (
|
||||
@ -128,7 +128,7 @@ export default sfc({
|
||||
{this.errorText}
|
||||
</div>
|
||||
)}
|
||||
{this.direction === 'up' ? this.slots() : placeholder}
|
||||
{this.direction === 'up' ? this.slots() : Placeholder}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ test('keep-alive live cycle', () => {
|
||||
|
||||
expect(wrapper.vm.$el).toBeTruthy();
|
||||
wrapper.vm.show = false;
|
||||
expect(wrapper.vm.el).toBeFalsy();
|
||||
expect(wrapper.vm.$el.nodeType).toEqual(Node.COMMENT_NODE);
|
||||
});
|
||||
|
||||
test('check the case that scroller is not window', async () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user