Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions final/client/src/components/__tests__/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
import React from 'react';
import { shallow, mount, render } from '../../enzyme';

import { renderApollo, cleanup } from '../../test-utils';
import { cleanup } from '../../test-utils';
import Footer from '../footer';

describe('Footer', () => {
// automatically unmount and cleanup DOM after the test is finished.
afterEach(cleanup);

it('renders without error', () => {
renderApollo(<Footer />);
describe('renders without error', () => {
const wrapper = shallow(<Footer/>);
it('should have element with cart id', () => {
expect(wrapper.find('#cart')).not.toBeNull();
});
it('should have element with profile id', () => {
expect(wrapper.find('#profile')).not.toBeNull();
});
});
});
1 change: 1 addition & 0 deletions final/client/src/components/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default styled('button')({
borderRadius: height / 2,
fontFamily: 'inherit',
fontSize: 18,

lineHeight: `${height}px`,
fontWeight: 700,
color: 'white',
Expand Down