mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
15 lines
458 B
JavaScript
15 lines
458 B
JavaScript
|
import React from 'react';
|
||
|
import { mount } from 'enzyme';
|
||
|
import Badge from '../index';
|
||
|
|
||
|
describe('Badge', () => {
|
||
|
test('badge dot not scaling count > 9', () => {
|
||
|
const badge = mount(<Badge count={10} dot />);
|
||
|
expect(badge.find('.ant-card-multiple-words').length).toBe(0);
|
||
|
});
|
||
|
test('badge dot not showing count == 0', () => {
|
||
|
const badge = mount(<Badge count={0} dot />);
|
||
|
expect(badge.find('.ant-badge-dot').length).toBe(0);
|
||
|
});
|
||
|
});
|