wallet-core/packages/anastasis-webui/tests/header.test.tsx

13 lines
439 B
TypeScript
Raw Normal View History

2021-10-11 10:58:55 +02:00
import { h } from 'preact';
import Header from '../src/components/header';
// See: https://github.com/preactjs/enzyme-adapter-preact-pure
import { shallow } from 'enzyme';
describe('Initial Test of the Header', () => {
test('Header renders 3 nav items', () => {
const context = shallow(<Header />);
expect(context.find('h1').text()).toBe('Preact App');
expect(context.find('Link').length).toBe(3);
});
});