Skip to content
This repository was archived by the owner on Jan 25, 2024. It is now read-only.

Commit de95cb9

Browse files
adding snapshot test
1 parent 4fa18cf commit de95cb9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/template/__tests__/index-spec.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import * as React from "react";
2+
import { shallow } from "enzyme";
3+
import toJson from "enzyme-to-json";
4+
5+
import Index from "../pages";
6+
7+
describe("test", () => {
8+
it("renders the index page correctly", () => {
9+
const component = shallow(<Index />);
10+
expect(toJson(component)).toMatchSnapshot();
11+
});
12+
});

0 commit comments

Comments
 (0)