Adding
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
import App from './App';
|
||||
import { ShallowWrapper, shallow } from 'enzyme';
|
||||
|
||||
// - TODO: Removing out test for now - maps js files are causing issues with current version of typescript. Once typescript is updated, add .test back into file name.
|
||||
|
||||
describe ('App component', () => {
|
||||
let wrapper: ShallowWrapper;
|
||||
|
||||
beforeEach(() => {
|
||||
wrapper = shallow(<App />);
|
||||
});
|
||||
|
||||
it ('renders a navigation bar', () => {
|
||||
const component = wrapper.find(`[data-test='navigationBar']`);
|
||||
expect(component.length).toBe(1);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user