mirror of
https://github.com/prymitive/karma
synced 2026-05-09 03:36:44 +00:00
20 lines
470 B
JavaScript
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();
|
|
});
|
|
});
|