some reformattings
added badges
This commit is contained in:
parent
83823dceab
commit
bb18a62a3d
@ -1,3 +1,5 @@
|
||||
[![pipeline status](http://gitlab.heili.eu/lukas/openmediacenter/badges/master/pipeline.svg)](http://gitlab.heili.eu/lukas/openmediacenter/-/commits/master)
|
||||
[![coverage report](http://gitlab.heili.eu/lukas/openmediacenter/badges/master/coverage.svg)](http://gitlab.heili.eu/lukas/openmediacenter/-/commits/master)
|
||||
# Open Media Center
|
||||
|
||||
Github: This is only a clone of the main Repository.
|
||||
|
@ -47,5 +47,8 @@
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"react-test-renderer": "^16.13.1"
|
||||
}
|
||||
}
|
||||
|
17
src/elements/AddTagPopup/AddTagPopup.test.js
Normal file
17
src/elements/AddTagPopup/AddTagPopup.test.js
Normal file
@ -0,0 +1,17 @@
|
||||
import React from "react";
|
||||
import ReactDom from 'react-dom'
|
||||
|
||||
import {render, cleanup} from '@testing-library/react'
|
||||
import "@testing-library/jest-dom"
|
||||
|
||||
import AddTagPopup from "./AddTagPopup";
|
||||
|
||||
afterEach(cleanup);
|
||||
|
||||
describe('<AddTagPopup/>', function () {
|
||||
it('renders without crashing ', function () {
|
||||
const div = document.createElement("div");
|
||||
ReactDom.render(<AddTagPopup/>,div);
|
||||
ReactDom.unmountComponentAtNode(div);
|
||||
});
|
||||
});
|
@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import "../css/SideBar.css"
|
||||
import "./SideBar.css"
|
||||
|
||||
class SideBar extends React.Component {
|
||||
render() {
|
20
src/elements/SideBar/SideBar.test.js
Normal file
20
src/elements/SideBar/SideBar.test.js
Normal file
@ -0,0 +1,20 @@
|
||||
import React from "react";
|
||||
import ReactDom from 'react-dom'
|
||||
import SideBar from "./SideBar";
|
||||
|
||||
import {render} from '@testing-library/react'
|
||||
import "@testing-library/jest-dom"
|
||||
|
||||
describe('<SideBar/>', function () {
|
||||
it('renders without crashing ', function () {
|
||||
const div = document.createElement("div");
|
||||
ReactDom.render(<SideBar/>,div);
|
||||
ReactDom.unmountComponentAtNode(div);
|
||||
});
|
||||
|
||||
it('renders childs correctly', function () {
|
||||
const {getByText} = render(<SideBar>test</SideBar>);
|
||||
const randomElement = getByText(/test/i);
|
||||
expect(randomElement).toBeInTheDocument();
|
||||
});
|
||||
});
|
@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
|
||||
import "../css/Tag.css"
|
||||
import "./Tag.css"
|
||||
|
||||
class Tag extends React.Component {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
import SideBar from "../elements/SideBar";
|
||||
import Tag from "../elements/Tag";
|
||||
import SideBar from "../elements/SideBar/SideBar";
|
||||
import Tag from "../elements/Tag/Tag";
|
||||
|
||||
import {TagPreview} from "../elements/Preview";
|
||||
import NewTagPopup from "../elements/NewTagPopup";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
import SideBar from "../elements/SideBar";
|
||||
import Tag from "../elements/Tag";
|
||||
import SideBar from "../elements/SideBar/SideBar";
|
||||
import Tag from "../elements/Tag/Tag";
|
||||
import VideoContainer from "../elements/VideoContainer";
|
||||
|
||||
import "../css/HomePage.css"
|
||||
|
@ -1,9 +1,9 @@
|
||||
import React from "react";
|
||||
import "../css/Player.css"
|
||||
import {PlyrComponent} from 'plyr-react';
|
||||
import SideBar from "../elements/SideBar";
|
||||
import Tag from "../elements/Tag";
|
||||
import AddTagPopup from "../elements/AddTagPopup";
|
||||
import SideBar from "../elements/SideBar/SideBar";
|
||||
import Tag from "../elements/Tag/Tag";
|
||||
import AddTagPopup from "../elements/AddTagPopup/AddTagPopup";
|
||||
|
||||
|
||||
class Player extends React.Component {
|
||||
|
@ -1,8 +1,8 @@
|
||||
import React from "react";
|
||||
import Preview from "../elements/Preview";
|
||||
import "../css/RandomPage.css"
|
||||
import SideBar from "../elements/SideBar";
|
||||
import Tag from "../elements/Tag";
|
||||
import SideBar from "../elements/SideBar/SideBar";
|
||||
import Tag from "../elements/Tag/Tag";
|
||||
|
||||
class RandomPage extends React.Component {
|
||||
constructor(props, context) {
|
||||
|
Loading…
Reference in New Issue
Block a user