Created
August 2, 2020 06:55
-
-
Save trinwin/24e85532800b3c533a770dbda3dd8e3a to your computer and use it in GitHub Desktop.
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 { mount } from "enzyme"; | |
import Home from "../../pages/index"; | |
describe("Pages", () => { | |
describe("Home", () => { | |
it("should render without throwing an error", function () { | |
const wrap = mount(<Home />); | |
expect(wrap.find("h1").text()).toBe("Welcome to My Next App!"); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment