Skip to content

Commit e027a56

Browse files
committed
Add demo test script
1 parent 80dea04 commit e027a56

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/context/__tests__/demo-test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'use strict';
2+
3+
import React from 'react';
4+
import { render, screen } from '@testing-library/react';
5+
import ContextMenuItem from '../ContextMenuItem';
6+
7+
test('renders learn react link', () => {
8+
render(<ContextMenuItem />);
9+
const linkElement = screen.getByText(/learn react/i);
10+
expect(linkElement).toBeInTheDocument();
11+
});

0 commit comments

Comments
 (0)