ant-design-vue/components/rate/__tests__/__snapshots__/demo.test.js.snap

324 lines
11 KiB
Plaintext
Raw Normal View History

2018-05-15 01:52:44 +00:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/rate/demo/basic.md correctly 1`] = `
<ul tabIndex="0" class="ant-rate">
<li class="ant-rate-star ant-rate-star-full">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-full">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
</ul>
`;
exports[`renders ./components/rate/demo/character.md correctly 1`] = `
<div>
<ul tabIndex="0" class="ant-rate">
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">
<i class="anticon anticon-heart"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-heart"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">
<i class="anticon anticon-heart"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-heart"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">
<i class="anticon anticon-heart"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-heart"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">
<i class="anticon anticon-heart"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-heart"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">
<i class="anticon anticon-heart"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-heart"></i>
</div>
</li>
</ul>
<br>
<ul tabIndex="0" class="ant-rate" style="font-size:36px;">
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">A</div>
<div class="ant-rate-star-second">A</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">A</div>
<div class="ant-rate-star-second">A</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">A</div>
<div class="ant-rate-star-second">A</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">A</div>
<div class="ant-rate-star-second">A</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">A</div>
<div class="ant-rate-star-second">A</div>
</li>
</ul>
<br>
<ul tabIndex="0" class="ant-rate">
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">好</div>
<div class="ant-rate-star-second">好</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">好</div>
<div class="ant-rate-star-second">好</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">好</div>
<div class="ant-rate-star-second">好</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">好</div>
<div class="ant-rate-star-second">好</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">好</div>
<div class="ant-rate-star-second">好</div>
</li>
</ul>
<br>
</div>
`;
exports[`renders ./components/rate/demo/clear.md correctly 1`] = `
<div>
<ul tabIndex="0" class="ant-rate">
<li class="ant-rate-star ant-rate-star-full">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-full">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-full">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
</ul> allowClear: true
<br>
<ul tabIndex="0" class="ant-rate">
<li class="ant-rate-star ant-rate-star-full">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-full">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-full">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
</ul> allowClear: false
<br>
</div>
`;
exports[`renders ./components/rate/demo/disabled.md correctly 1`] = `
<ul tabIndex="-1" class="ant-rate ant-rate-disabled">
<li class="ant-rate-star ant-rate-star-full">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-full">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
</ul>
`;
exports[`renders ./components/rate/demo/half.md correctly 1`] = `
<ul tabIndex="0" class="ant-rate">
<li class="ant-rate-star ant-rate-star-full">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-full">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-half ant-rate-star-active">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
<li class="ant-rate-star ant-rate-star-zero">
<div class="ant-rate-star-first">
<i class="anticon anticon-star"></i>
</div>
<div class="ant-rate-star-second">
<i class="anticon anticon-star"></i>
</div>
</li>
</ul>
`;
exports[`renders ./components/rate/demo/text.md correctly 1`] = `<span><ul tabIndex="0" class="ant-rate"><li class="ant-rate-star ant-rate-star-full"><div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div><div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div></li><li class="ant-rate-star ant-rate-star-full"><div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div><div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div></li><li class="ant-rate-star ant-rate-star-full"><div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div><div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div></li><li class="ant-rate-star ant-rate-star-zero"><div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div><div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div></li><li class="ant-rate-star ant-rate-star-zero"><div class="ant-rate-star-first"><i class="anticon anticon-star"></i></div><div class="ant-rate-star-second"><i class="anticon anticon-star"></i></div></li></ul> <span class="ant-rate-text">3 stars</span></span>`;