DigitalConsumer.ISS/src/iss-components/site-header/site-header.spec.js
DavidAtSafelite 80509bda53 We have advanced the code enough to call this one 8.5
It has more layout page linting and I have removed (really re-removed) the reduntant router parms.
2023-08-23 07:16:58 -04:00

22 lines
636 B
JavaScript

import siteHeader from '@/iss-components/site-header/site-header.vue';
import { shallowMount } from '@vue/test-utils';
import { getMountOptions } from '@/helpers/unit-test-helper.js';
/** @ignore */
function setupMocks({
mountOptionsMockData = {}
}) {
const mountOptions = getMountOptions(mountOptionsMockData);
const wrapper = shallowMount(siteHeader, mountOptions);
return wrapper;
}
describe('site-header', () => {
test('renders the logo image', () => {
const wrapper = setupMocks({ mountOptionsMockData: {} });
expect(wrapper.find('img')).toBeTruthy();
wrapper.unmount();
});
});