update badge snapshot test

This commit is contained in:
afc163 2018-06-02 13:18:11 +08:00
parent 7149d1fdff
commit e124cabc5b
2 changed files with 5 additions and 4 deletions

View File

@ -7,11 +7,12 @@ exports[`Badge should be compatible with borderColor style 1`] = `
<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;"
style="background-color:#fff;color:#999;border-color:#d9d9d9;box-shadow:0 0 0 1px #d9d9d9 inset"
title="4"
>
<span
class="ant-scroll-number-only"
style="transition:none;-ms-transform:translateY(-1400%);-webkit-transform:translateY(-1400%);transform:translateY(-1400%)"
>
<p
class=""

View File

@ -1,5 +1,5 @@
import React from 'react';
import { mount } from 'enzyme';
import { mount, render } from 'enzyme';
import Badge from '../index';
import Tooltip from '../../tooltip';
@ -59,7 +59,7 @@ describe('Badge', () => {
});
it('should be compatible with borderColor style', () => {
const wrapper = mount(<Badge count={4} style={{ backgroundColor: '#fff', color: '#999', borderColor: '#d9d9d9' }} />);
expect(wrapper.render()).toMatchSnapshot();
const wrapper = render(<Badge count={4} style={{ backgroundColor: '#fff', color: '#999', borderColor: '#d9d9d9' }} />);
expect(wrapper).toMatchSnapshot();
});
});