mirror of
https://github.com/wassname/talk.git
synced 2026-07-23 13:10:20 +08:00
Updated tests
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user