Created
June 6, 2019 17:29
-
-
Save ivanbtrujillo/62da15743d3be3b3b403290097959f99 to your computer and use it in GitHub Desktop.
react-testing-library-article-1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { render, cleanup, fireEvent } from "@testing-library/react"; | |
import Sum from "./Sum"; | |
describe("Sum", () => { | |
afterEach(cleanup) | |
it("should render", () => { | |
const SumComponent = render(<Sum />); | |
expect(SumComponent).toBeTruthy(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment