ant-design/components/badge/__tests__/__snapshots__/index.test.js.snap

2187 lines
45 KiB
Plaintext
Raw Normal View History

2018-05-25 17:00:32 +08:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Badge should be compatible with borderColor style 1`] = `
<span
class="ant-badge ant-badge-not-a-wrapper"
>
<sup
class="ant-scroll-number ant-badge-count"
data-show="true"
style="background-color: rgb(255, 255, 255); color: rgb(153, 153, 153); border-color: #d9d9d9; box-shadow: 0 0 0 1px #d9d9d9 inset;"
title="4"
>
<span
class="ant-scroll-number-only"
>
<p
class=""
>
0
</p>
<p
class=""
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class=""
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
<p
class=""
>
0
</p>
<p
class=""
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class="current"
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
<p
class=""
>
0
</p>
<p
class=""
>
1
</p>
<p
class=""
>
2
</p>
<p
class=""
>
3
</p>
<p
class=""
>
4
</p>
<p
class=""
>
5
</p>
<p
class=""
>
6
</p>
<p
class=""
>
7
</p>
<p
class=""
>
8
</p>
<p
class=""
>
9
</p>
</span>
</sup>
</span>
`;
exports[`Badge should render when count is changed 1`] = `
<Badge
count={10}
dot={false}
overflowCount={99}
prefixCls="ant-badge"
scrollNumberPrefixCls="ant-scroll-number"
showZero={false}
>
<span
className="ant-badge ant-badge-not-a-wrapper"
>
<Animate
animation={Object {}}
component=""
componentProps={Object {}}
onAppear={[Function]}
onEnd={[Function]}
onEnter={[Function]}
onLeave={[Function]}
showProp="data-show"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<AnimateChild
animation={Object {}}
2018-05-25 17:34:40 +08:00
key="scrollNumber"
2018-05-25 17:00:32 +08:00
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<ScrollNumber
className="ant-badge-count ant-badge-multiple-words"
count={10}
data-show={true}
2018-05-25 17:34:40 +08:00
key="scrollNumber"
2018-05-25 17:00:32 +08:00
onAnimated={[Function]}
prefixCls="ant-scroll-number"
title={10}
>
<sup
className="ant-scroll-number ant-badge-count ant-badge-multiple-words"
data-show={true}
title={10}
>
<span
className="ant-scroll-number-only"
key="0"
style={
Object {
"WebkitTransform": "translateY(-1900%)",
"msTransform": "translateY(-1900%)",
"transform": "translateY(-1900%)",
"transition": "none",
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className=""
key="10"
>
0
</p>
<p
className=""
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className="current"
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
</Badge>
`;
exports[`Badge should render when count is changed 2`] = `
<Badge
count={11}
dot={false}
overflowCount={99}
prefixCls="ant-badge"
scrollNumberPrefixCls="ant-scroll-number"
showZero={false}
>
<span
className="ant-badge ant-badge-not-a-wrapper"
>
<Animate
animation={Object {}}
component=""
componentProps={Object {}}
onAppear={[Function]}
onEnd={[Function]}
onEnter={[Function]}
onLeave={[Function]}
showProp="data-show"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<AnimateChild
animation={Object {}}
2018-05-25 17:34:40 +08:00
key="scrollNumber"
2018-05-25 17:00:32 +08:00
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<ScrollNumber
className="ant-badge-count ant-badge-multiple-words"
count={11}
data-show={true}
2018-05-25 17:34:40 +08:00
key="scrollNumber"
2018-05-25 17:00:32 +08:00
onAnimated={[Function]}
prefixCls="ant-scroll-number"
title={11}
>
<sup
className="ant-scroll-number ant-badge-count ant-badge-multiple-words"
data-show={true}
title={11}
>
<span
className="ant-scroll-number-only"
key="1"
style={
Object {
"WebkitTransform": "translateY(-1100%)",
"msTransform": "translateY(-1100%)",
"transform": "translateY(-1100%)",
"transition": "none",
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className=""
key="10"
>
0
</p>
<p
className="current"
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className=""
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
<span
className="ant-scroll-number-only"
key="0"
style={
Object {
"WebkitTransform": "translateY(-1000%)",
"msTransform": "translateY(-1000%)",
"transform": "translateY(-1000%)",
"transition": "none",
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className="current"
key="10"
>
0
</p>
<p
className=""
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className=""
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
</Badge>
`;
exports[`Badge should render when count is changed 3`] = `
<Badge
count={11}
dot={false}
overflowCount={99}
prefixCls="ant-badge"
scrollNumberPrefixCls="ant-scroll-number"
showZero={false}
>
<span
className="ant-badge ant-badge-not-a-wrapper"
>
<Animate
animation={Object {}}
component=""
componentProps={Object {}}
onAppear={[Function]}
onEnd={[Function]}
onEnter={[Function]}
onLeave={[Function]}
showProp="data-show"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<AnimateChild
animation={Object {}}
2018-05-25 17:34:40 +08:00
key="scrollNumber"
2018-05-25 17:00:32 +08:00
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<ScrollNumber
className="ant-badge-count ant-badge-multiple-words"
count={11}
data-show={true}
2018-05-25 17:34:40 +08:00
key="scrollNumber"
2018-05-25 17:00:32 +08:00
onAnimated={[Function]}
prefixCls="ant-scroll-number"
title={11}
>
<sup
className="ant-scroll-number ant-badge-count ant-badge-multiple-words"
data-show={true}
title={11}
>
<span
className="ant-scroll-number-only"
key="1"
style={
Object {
"WebkitTransform": "translateY(-1100%)",
"msTransform": "translateY(-1100%)",
"transform": "translateY(-1100%)",
"transition": undefined,
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className=""
key="10"
>
0
</p>
<p
className="current"
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className=""
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
<span
className="ant-scroll-number-only"
key="0"
style={
Object {
"WebkitTransform": "translateY(-1100%)",
"msTransform": "translateY(-1100%)",
"transform": "translateY(-1100%)",
"transition": undefined,
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className=""
key="10"
>
0
</p>
<p
className="current"
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className=""
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
</Badge>
`;
exports[`Badge should render when count is changed 4`] = `
<Badge
count={10}
dot={false}
overflowCount={99}
prefixCls="ant-badge"
scrollNumberPrefixCls="ant-scroll-number"
showZero={false}
>
<span
className="ant-badge ant-badge-not-a-wrapper"
>
<Animate
animation={Object {}}
component=""
componentProps={Object {}}
onAppear={[Function]}
onEnd={[Function]}
onEnter={[Function]}
onLeave={[Function]}
showProp="data-show"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<AnimateChild
animation={Object {}}
2018-05-25 17:34:40 +08:00
key="scrollNumber"
2018-05-25 17:00:32 +08:00
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<ScrollNumber
className="ant-badge-count ant-badge-multiple-words"
count={10}
data-show={true}
2018-05-25 17:34:40 +08:00
key="scrollNumber"
2018-05-25 17:00:32 +08:00
onAnimated={[Function]}
prefixCls="ant-scroll-number"
title={10}
>
<sup
className="ant-scroll-number ant-badge-count ant-badge-multiple-words"
data-show={true}
title={10}
>
<span
className="ant-scroll-number-only"
key="1"
style={
Object {
"WebkitTransform": "translateY(-1100%)",
"msTransform": "translateY(-1100%)",
"transform": "translateY(-1100%)",
"transition": "none",
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className=""
key="10"
>
0
</p>
<p
className="current"
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className=""
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
<span
className="ant-scroll-number-only"
key="0"
style={
Object {
"WebkitTransform": "translateY(-1100%)",
"msTransform": "translateY(-1100%)",
"transform": "translateY(-1100%)",
"transition": "none",
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className=""
key="10"
>
0
</p>
<p
className="current"
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className=""
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
</Badge>
`;
exports[`Badge should render when count is changed 5`] = `
<Badge
count={9}
dot={false}
overflowCount={99}
prefixCls="ant-badge"
scrollNumberPrefixCls="ant-scroll-number"
showZero={false}
>
<span
className="ant-badge ant-badge-not-a-wrapper"
>
<Animate
animation={Object {}}
component=""
componentProps={Object {}}
onAppear={[Function]}
onEnd={[Function]}
onEnter={[Function]}
onLeave={[Function]}
showProp="data-show"
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<AnimateChild
animation={Object {}}
2018-05-25 17:34:40 +08:00
key="scrollNumber"
2018-05-25 17:00:32 +08:00
transitionAppear={true}
transitionEnter={true}
transitionLeave={true}
transitionName=""
>
<ScrollNumber
className="ant-badge-count"
count={9}
data-show={true}
2018-05-25 17:34:40 +08:00
key="scrollNumber"
2018-05-25 17:00:32 +08:00
onAnimated={[Function]}
prefixCls="ant-scroll-number"
title={9}
>
<sup
className="ant-scroll-number ant-badge-count"
data-show={true}
title={9}
>
<span
className="ant-scroll-number-only"
key="1"
style={
Object {
"WebkitTransform": "translateY(-1100%)",
"msTransform": "translateY(-1100%)",
"transform": "translateY(-1100%)",
"transition": "none",
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className=""
key="10"
>
0
</p>
<p
className="current"
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className=""
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
<span
className="ant-scroll-number-only"
key="0"
style={
Object {
"WebkitTransform": "translateY(-1000%)",
"msTransform": "translateY(-1000%)",
"transform": "translateY(-1000%)",
"transition": "none",
}
}
>
<p
className=""
key="0"
>
0
</p>
<p
className=""
key="1"
>
1
</p>
<p
className=""
key="2"
>
2
</p>
<p
className=""
key="3"
>
3
</p>
<p
className=""
key="4"
>
4
</p>
<p
className=""
key="5"
>
5
</p>
<p
className=""
key="6"
>
6
</p>
<p
className=""
key="7"
>
7
</p>
<p
className=""
key="8"
>
8
</p>
<p
className=""
key="9"
>
9
</p>
<p
className="current"
key="10"
>
0
</p>
<p
className=""
key="11"
>
1
</p>
<p
className=""
key="12"
>
2
</p>
<p
className=""
key="13"
>
3
</p>
<p
className=""
key="14"
>
4
</p>
<p
className=""
key="15"
>
5
</p>
<p
className=""
key="16"
>
6
</p>
<p
className=""
key="17"
>
7
</p>
<p
className=""
key="18"
>
8
</p>
<p
className=""
key="19"
>
9
</p>
<p
className=""
key="20"
>
0
</p>
<p
className=""
key="21"
>
1
</p>
<p
className=""
key="22"
>
2
</p>
<p
className=""
key="23"
>
3
</p>
<p
className=""
key="24"
>
4
</p>
<p
className=""
key="25"
>
5
</p>
<p
className=""
key="26"
>
6
</p>
<p
className=""
key="27"
>
7
</p>
<p
className=""
key="28"
>
8
</p>
<p
className=""
key="29"
>
9
</p>
</span>
</sup>
</ScrollNumber>
</AnimateChild>
</Animate>
</span>
</Badge>
`;