Skip to content

Commit

Permalink
test(Tag): remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Nov 28, 2019
1 parent beb2956 commit 3d29bf3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/react/src/components/Tag/Tag-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ const { prefix } = settings;
describe('Tag', () => {
describe('Renders as expected', () => {
it('should render with the appropriate type', () => {
const tag = shallow(<Tag type="beta" />);
const tag = shallow(<Tag type="red" />);
expect(tag.hasClass(`${prefix}--tag`)).toEqual(true);
expect(tag.hasClass(`${prefix}--tag--beta`)).toEqual(true);
expect(tag.hasClass(`${prefix}--tag--red`)).toEqual(true);
});
});

it('should allow for a custom label', () => {
const tag = shallow(<Tag type="beta">New Version!</Tag>);
const tag = shallow(<Tag type="red">New Version!</Tag>);
expect(tag.text()).toEqual('New Version!');
});

it('should support extra class names', () => {
const tag = shallow(<Tag type="beta" className="extra-class" />);
const tag = shallow(<Tag type="red" className="extra-class" />);
expect(tag.hasClass('extra-class')).toEqual(true);
});
});
Expand Down

0 comments on commit 3d29bf3

Please sign in to comment.