Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. import React from "react";
  2. import { render, cleanup, fireEvent } from "@testing-library/react";
  3. import Sum from "./Sum";
  4.  
  5. describe("Sum", () => {
  6.  
  7. it('should have two inputs to add the numbers', () => {
  8. const { getByTestId } = render(<Sum />);
  9.  
  10. const firstInput = getByTestId("value1");
  11. const secondInput = getByTestId("value2");
  12.  
  13. expect(firstInput).toBeTruthy();
  14. expect(secondInput).toBeTruthy();
  15. });
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement