Updated tests

This commit is contained in:
Belén Curcio
2018-09-11 13:09:49 -03:00
parent f7fa1dae23
commit 5a8ce7655c
7 changed files with 341 additions and 111 deletions
@@ -16,12 +16,8 @@ it("renders correctly", () => {
});
it("renders icon", () => {
const props: PropTypesOf<typeof Message> = {
className: "custom",
};
const renderer = TestRenderer.create(
<Message {...props}>
<Message>
<MessageIcon>alert</MessageIcon>Alert Message
</Message>
);
@@ -1,9 +1,6 @@
import cn from "classnames";
import React, { ReactNode, StatelessComponent } from "react";
import { withStyles } from "talk-ui/hocs";
import Icon from "../Icon";
import * as styles from "./Message.css";
export interface MessageProps {
@@ -10,7 +10,7 @@ exports[`renders correctly 1`] = `
exports[`renders icon 1`] = `
<div
className="Message-root Message-colorGrey custom"
className="Message-root Message-colorGrey"
>
<span
aria-hidden="true"