Skip to content

Commit 51ca9a5

Browse files
committed
Add failing tests
1 parent fdf7b08 commit 51ca9a5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/App.test.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
import React from 'react';
22
import { render, screen } from '@testing-library/react';
33
import App from './App';
4+
import en from './i18n/en.json5';
45

56
test('renders learn react link', () => {
67
render(<App />);
7-
const linkElement = screen.getByText(/learn react/i);
8+
const linkElement = screen.getByText(/My cool application/i);
89
expect(linkElement).toBeInTheDocument();
910
});
11+
12+
13+
test('json5 file is loaded', () => {
14+
expect(en).toEqual({'APP.TITLE': 'My cool application'});
15+
});

0 commit comments

Comments
 (0)