mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 03:22:59 +08:00
update badge snapshot test
This commit is contained in:
parent
7149d1fdff
commit
e124cabc5b
@ -7,11 +7,12 @@ exports[`Badge should be compatible with borderColor style 1`] = `
|
|||||||
<sup
|
<sup
|
||||||
class="ant-scroll-number ant-badge-count"
|
class="ant-scroll-number ant-badge-count"
|
||||||
data-show="true"
|
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;"
|
style="background-color:#fff;color:#999;border-color:#d9d9d9;box-shadow:0 0 0 1px #d9d9d9 inset"
|
||||||
title="4"
|
title="4"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="ant-scroll-number-only"
|
class="ant-scroll-number-only"
|
||||||
|
style="transition:none;-ms-transform:translateY(-1400%);-webkit-transform:translateY(-1400%);transform:translateY(-1400%)"
|
||||||
>
|
>
|
||||||
<p
|
<p
|
||||||
class=""
|
class=""
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { mount } from 'enzyme';
|
import { mount, render } from 'enzyme';
|
||||||
import Badge from '../index';
|
import Badge from '../index';
|
||||||
import Tooltip from '../../tooltip';
|
import Tooltip from '../../tooltip';
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ describe('Badge', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should be compatible with borderColor style', () => {
|
it('should be compatible with borderColor style', () => {
|
||||||
const wrapper = mount(<Badge count={4} style={{ backgroundColor: '#fff', color: '#999', borderColor: '#d9d9d9' }} />);
|
const wrapper = render(<Badge count={4} style={{ backgroundColor: '#fff', color: '#999', borderColor: '#d9d9d9' }} />);
|
||||||
expect(wrapper.render()).toMatchSnapshot();
|
expect(wrapper).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user