mirror of
https://github.com/prymitive/karma
synced 2026-05-23 04:42:58 +00:00
17 lines
443 B
TypeScript
17 lines
443 B
TypeScript
import { render } from "@testing-library/react";
|
|
|
|
import { MockThemeContext } from "__fixtures__/Theme";
|
|
import { ThemeContext } from "Components/Theme";
|
|
import { NoUpstream } from ".";
|
|
|
|
describe("<NoUpstream />", () => {
|
|
it("matches snapshot", () => {
|
|
const { asFragment } = render(
|
|
<ThemeContext value={MockThemeContext}>
|
|
<NoUpstream />
|
|
</ThemeContext>,
|
|
);
|
|
expect(asFragment()).toMatchSnapshot();
|
|
});
|
|
});
|