Commit 80acb387 authored by Jannik Lehmann's avatar Jannik Lehmann

Refactored specs

parent 30151395
...@@ -227,7 +227,7 @@ describe('DependenciesApp component', () => { ...@@ -227,7 +227,7 @@ describe('DependenciesApp component', () => {
it('renders the SbomBannercomponent with the right props', () => { it('renders the SbomBannercomponent with the right props', () => {
const sbomBanner = findSbomBanner(); const sbomBanner = findSbomBanner();
expect(sbomBanner.exists()).toBe(true); expect(sbomBanner.exists()).toBe(true);
expect(sbomBanner.props().sbomSurveySvgPath).toEqual(wrapper.vm.sbomSurveySvgPath); expect(sbomBanner.props().sbomSurveySvgPath).toEqual(basicAppProps.sbomSurveySvgPath);
}); });
describe('given the user has public permissions', () => { describe('given the user has public permissions', () => {
......
...@@ -192,7 +192,7 @@ describe('Project Licenses', () => { ...@@ -192,7 +192,7 @@ describe('Project Licenses', () => {
it('renders the SbomBannercomponent with the right props', () => { it('renders the SbomBannercomponent with the right props', () => {
const sbomBanner = findSbomBanner(); const sbomBanner = findSbomBanner();
expect(sbomBanner.exists()).toBe(true); expect(sbomBanner.exists()).toBe(true);
expect(sbomBanner.props().sbomSurveySvgPath).toEqual(wrapper.vm.sbomSurveySvgPath); expect(sbomBanner.props().sbomSurveySvgPath).toEqual(sbomSurveySvgPath);
}); });
it('renders a "Detected in project" tab and a "Policies" tab', () => { it('renders a "Detected in project" tab and a "Policies" tab', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment