import React from "react";
import { mount } from "enzyme";
import RadioButtonGroup from ".";
const baseProps = {
name: "fruits",
selected: "banana",
options: [
{ value: "apple", label: "Sweet apple" },
{ value: "banana", label: "Banana" },
{ value: "Mandarin" },
],
};
describe("", () => {
it("renders without error", () => {
const wrapper = mount();
expect(wrapper).toExist();
});
it("accepts id", () => {
const wrapper = mount();
expect(wrapper.prop("id")).toEqual("testId");
});
it("accepts className", () => {
const wrapper = mount();
expect(wrapper.prop("className")).toEqual("test");
});
it("accepts style", () => {
const wrapper = mount(
);
expect(wrapper.getDOMNode().style).toHaveProperty("color", "red");
});
it("accepts isDisabled prop", () => {
const wrapper = mount();
expect(wrapper.prop("isDisabled")).toEqual(true);
});
});