import * as React from "react"
import { create } from "react-test-renderer"
import * as Toast from ".."

describe("Toast", () => {
  it("render success", () => {
    const t = create(<Toast.Success message="success" />)
    expect(t.toJSON()).toMatchSnapshot()
  })
  it("render error", () => {
    const t = create(<Toast.Error message="error" />)
    expect(t.toJSON()).toMatchSnapshot()
  })
})
