Created
July 8, 2021 13:14
-
-
Save lek890/68f405c29a38f5b6dc0153eea2379196 to your computer and use it in GitHub Desktop.
This file contains 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 { render } from "@testing-library/react"; | |
import { UserProfile } from "./User"; | |
it("doesn't shows the premium features", () => { | |
const { queryByTestId } = render( | |
<UserProfile user={{ name: "Sheldon", isPremiumUser: false }} /> | |
); | |
expect(queryByTestId("premiumFeatures")).toBeFalsy(); //passes | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment