Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
Adicionar testes Unitários
Browse files Browse the repository at this point in the history
  • Loading branch information
leticiaarj committed Apr 1, 2019
1 parent bc01d39 commit 4095607
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions unbrake-frontend/src/tests/RealTimeChart.test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from "react";
import Enzyme, { shallow } from "enzyme";
import toJson from "enzyme-to-json";
import Adapter from "enzyme-adapter-react-16";
import RealTimeChart from "../components/RealTimeChart";

Enzyme.configure({ adapter: new Adapter() });

describe("<RealTimeChart />", () => {
describe("render()", () => {
test("renders the component", () => {
const wrapper = shallow(<RealTimeChart />);
const component = wrapper.dive();

expect(toJson(component)).toMatchSnapshot();
});
});
});

0 comments on commit 4095607

Please sign in to comment.