mirror of
https://github.com/chinchang/web-maker.git
synced 2025-08-03 20:07:35 +02:00
refactor tests and babel config. Fixes target browsers.
This is basically the change propagated from the current default preact tempalate. Now the code compiles according to set browsers.
This commit is contained in:
12
tests/footer.test.js
Normal file
12
tests/footer.test.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { h, Component } from 'preact';
|
||||
import Footer from '../src/components/Footer';
|
||||
import { Link } from 'preact-router/match';
|
||||
// See: https://github.com/mzgoddard/preact-render-spy
|
||||
import { shallow, deep } from 'preact-render-spy';
|
||||
|
||||
describe('Initial Test of the Footer', () => {
|
||||
test('Footer renders 1 link with an ID of notificationsBtn', () => {
|
||||
const context = shallow(<Footer prefs={{}} />);
|
||||
expect(context.find('#notificationsBtn').exists()).toBeTruthy();
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user