Files
karma/ui/src/Components/Grid/EmptyGrid/index.test.js
2020-04-16 10:06:33 +01:00

20 lines
470 B
JavaScript

import React from "react";
import { shallow } from "enzyme";
import { MockThemeContext } from "__mocks__/Theme";
import toDiffableHtml from "diffable-html";
import { EmptyGrid } from ".";
beforeAll(() => {
jest.spyOn(React, "useContext").mockImplementation(() => MockThemeContext);
});
describe("<EmptyGrid />", () => {
it("matches snapshot", () => {
const tree = shallow(<EmptyGrid />);
expect(toDiffableHtml(tree.html())).toMatchSnapshot();
});
});