test: add typing for some test cases (#8243)

This commit is contained in:
neverland
2021-03-02 09:33:08 +08:00
committed by GitHub
parent 569d353b4a
commit bbb882acfa
13 changed files with 50 additions and 44 deletions
@@ -0,0 +1,51 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should not start scrolling when content width > wrap width 1`] = `
<div role="alert"
class="van-notice-bar"
>
<div role="marquee"
class="van-notice-bar__wrap"
>
<div style="transition-duration: 0s;"
class="van-notice-bar__content"
>
foo
</div>
</div>
</div>
`;
exports[`should render icon slot correct 1`] = `
<div role="alert"
class="van-notice-bar"
>
Custom Left Icon
<div role="marquee"
class="van-notice-bar__wrap"
>
<div style="transition-duration: 0s;"
class="van-notice-bar__content"
>
Content
</div>
</div>
Custom Right Icon
</div>
`;
exports[`should start scrolling when content width > wrap width 1`] = `
<div role="alert"
class="van-notice-bar"
>
<div role="marquee"
class="van-notice-bar__wrap"
>
<div style="transition-duration: 2s; transform: translateX(-100px);"
class="van-notice-bar__content"
>
foo
</div>
</div>
</div>
`;