reformattings

no redirect on tagclick on homepage
no multiple add of same tag possible
This commit is contained in:
2020-10-25 18:48:23 +00:00
parent 812c45cb13
commit 777cc2a712
43 changed files with 493 additions and 448 deletions

View File

@ -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

View File

@ -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');
});
});