initial commit

This commit is contained in:
Joshua Seigler 2022-11-16 14:26:08 -05:00
commit 9a0b1c1254
No known key found for this signature in database
28 changed files with 42055 additions and 0 deletions

12
tests/header.test.js Normal file
View file

@ -0,0 +1,12 @@
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);
});
});