We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1174ebd commit 863eaf4Copy full SHA for 863eaf4
src/components/WindowContent/WindowContent.spec.js
@@ -0,0 +1,24 @@
1
+import React from 'react';
2
+
3
+import { renderWithTheme } from '../../../test/utils';
4
5
+import WindowContent from './WindowContent';
6
7
+describe('<WindowContent />', () => {
8
+ it('renders WindowContent', () => {
9
+ const { container } = renderWithTheme(<WindowContent />);
10
+ const windowContent = container.firstChild;
11
12
+ expect(windowContent).toBeInTheDocument();
13
+ });
14
15
+ it('renders children', () => {
16
+ const textContent = 'Hi there!';
17
+ const { getByText } = renderWithTheme(
18
+ <WindowContent>
19
+ <span>{textContent}</span>
20
+ </WindowContent>
21
+ );
22
+ expect(getByText(textContent)).toBeInTheDocument();
23
24
+});
0 commit comments