reformattings
no redirect on tagclick on homepage no multiple add of same tag possible
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
			
		||||
import React from "react";
 | 
			
		||||
import style from "./SideBar.module.css"
 | 
			
		||||
import GlobalInfos from "../../GlobalInfos";
 | 
			
		||||
import React from 'react';
 | 
			
		||||
import style from './SideBar.module.css';
 | 
			
		||||
import GlobalInfos from '../../GlobalInfos';
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * component for sidebar-info
 | 
			
		||||
 
 | 
			
		||||
@@ -1,8 +1,8 @@
 | 
			
		||||
import React from "react";
 | 
			
		||||
import SideBar, {SideBarItem, SideBarTitle} from "./SideBar";
 | 
			
		||||
import React from 'react';
 | 
			
		||||
import SideBar, {SideBarItem, SideBarTitle} from './SideBar';
 | 
			
		||||
 | 
			
		||||
import "@testing-library/jest-dom"
 | 
			
		||||
import {shallow} from "enzyme";
 | 
			
		||||
import '@testing-library/jest-dom';
 | 
			
		||||
import {shallow} from 'enzyme';
 | 
			
		||||
 | 
			
		||||
describe('<SideBar/>', function () {
 | 
			
		||||
    it('renders without crashing ', function () {
 | 
			
		||||
@@ -12,16 +12,16 @@ describe('<SideBar/>', function () {
 | 
			
		||||
 | 
			
		||||
    it('renders childs correctly', function () {
 | 
			
		||||
        const wrapper = shallow(<SideBar>test</SideBar>);
 | 
			
		||||
        expect(wrapper.children().text()).toBe("test");
 | 
			
		||||
        expect(wrapper.children().text()).toBe('test');
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    it('sidebar Item renders without crashing', function () {
 | 
			
		||||
        const wrapper = shallow(<SideBarItem>Test</SideBarItem>);
 | 
			
		||||
        expect(wrapper.children().text()).toBe("Test");
 | 
			
		||||
        expect(wrapper.children().text()).toBe('Test');
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    it('renderes sidebartitle correctly', function () {
 | 
			
		||||
        const wrapper = shallow(<SideBarTitle>Test</SideBarTitle>);
 | 
			
		||||
        expect(wrapper.children().text()).toBe("Test");
 | 
			
		||||
        expect(wrapper.children().text()).toBe('Test');
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user