Skip to content

Commit

Permalink
test: update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrus97 committed Apr 7, 2023
1 parent d38ee7d commit 488bcea
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions src/image-viewer/__test__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ exports[`image-viewer :base 1`] = `
>
<wx-view
class="class t-class t-loading t-loading--horizontal"
style="width: 44rpx; height: 44rpx; color: inherit"
style="width: 44rpx; height: 44rpx; color: inherit;"
>
<wx-view
ariaLabel="加载中"
ariaRole="img"
class="t-class-indicator t-loading__spinner t-loading__spinner--dots "
style="width: 44rpx; height: 44rpx; color: inherit ; animation-duration: 0.8s; animation-play-state: running;"
style="width: 44rpx; height: 44rpx; color: inherit; animation-duration: 0.8s; animation-play-state: running;"
>
<wx-view
class="t-loading__dot"
Expand Down Expand Up @@ -83,13 +83,13 @@ exports[`image-viewer :base 2`] = `
>
<wx-view
class="class t-class t-loading t-loading--horizontal"
style="width: 44rpx; height: 44rpx; color: inherit"
style="width: 44rpx; height: 44rpx; color: inherit;"
>
<wx-view
ariaLabel="加载中"
ariaRole="img"
class="t-class-indicator t-loading__spinner t-loading__spinner--dots "
style="width: 44rpx; height: 44rpx; color: inherit ; animation-duration: 0.8s; animation-play-state: running;"
style="width: 44rpx; height: 44rpx; color: inherit; animation-duration: 0.8s; animation-play-state: running;"
>
<wx-view
class="t-loading__dot"
Expand Down Expand Up @@ -148,13 +148,13 @@ exports[`image-viewer :base 3`] = `
>
<wx-view
class="class t-class t-loading t-loading--horizontal"
style="width: 44rpx; height: 44rpx; color: inherit"
style="width: 44rpx; height: 44rpx; color: inherit;"
>
<wx-view
ariaLabel="加载中"
ariaRole="img"
class="t-class-indicator t-loading__spinner t-loading__spinner--dots "
style="width: 44rpx; height: 44rpx; color: inherit ; animation-duration: 0.8s; animation-play-state: running;"
style="width: 44rpx; height: 44rpx; color: inherit; animation-duration: 0.8s; animation-play-state: running;"
>
<wx-view
class="t-loading__dot"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ exports[`image-viewer :base 1`] = `
>
<wx-view
class="class t-class t-loading t-loading--horizontal"
style="width: 44rpx; height: 44rpx; color: inherit"
style="width: 44rpx; height: 44rpx; color: inherit;"
>
<wx-view
ariaLabel="加载中"
ariaRole="img"
class="t-class-indicator t-loading__spinner t-loading__spinner--dots "
style="width: 44rpx; height: 44rpx; color: inherit ; animation-duration: 0.8s; animation-play-state: running;"
style="width: 44rpx; height: 44rpx; color: inherit; animation-duration: 0.8s; animation-play-state: running;"
>
<wx-view
class="t-loading__dot"
Expand Down Expand Up @@ -46,13 +46,13 @@ exports[`image-viewer :base 2`] = `
>
<wx-view
class="class t-class t-loading t-loading--horizontal"
style="width: 44rpx; height: 44rpx; color: inherit"
style="width: 44rpx; height: 44rpx; color: inherit;"
>
<wx-view
ariaLabel="加载中"
ariaRole="img"
class="t-class-indicator t-loading__spinner t-loading__spinner--dots "
style="width: 44rpx; height: 44rpx; color: inherit ; animation-duration: 0.8s; animation-play-state: running;"
style="width: 44rpx; height: 44rpx; color: inherit; animation-duration: 0.8s; animation-play-state: running;"
>
<wx-view
class="t-loading__dot"
Expand Down Expand Up @@ -84,13 +84,13 @@ exports[`image-viewer :base 3`] = `
>
<wx-view
class="class t-class t-loading t-loading--horizontal"
style="width: 44rpx; height: 44rpx; color: inherit"
style="width: 44rpx; height: 44rpx; color: inherit;"
>
<wx-view
ariaLabel="加载中"
ariaRole="img"
class="t-class-indicator t-loading__spinner t-loading__spinner--dots "
style="width: 44rpx; height: 44rpx; color: inherit ; animation-duration: 0.8s; animation-play-state: running;"
style="width: 44rpx; height: 44rpx; color: inherit; animation-duration: 0.8s; animation-play-state: running;"
>
<wx-view
class="t-loading__dot"
Expand Down
2 changes: 1 addition & 1 deletion src/loading/__test__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('loading', () => {
expect(comp.data.show).not.toBeTruthy();

const $loading = comp.querySelector('.base >>> .t-loading');
expect($loading.dom.getAttribute('style').includes('display:none')).toBeTruthy();
expect($loading.dom.style.display).toBe('none');
});

it(`: theme`, () => {
Expand Down

0 comments on commit 488bcea

Please sign in to comment.