Skip to content

Commit 0c92a77

Browse files
committed
cleaned up comment
1 parent 6e8771f commit 0c92a77

File tree

7 files changed

+2
-41
lines changed

7 files changed

+2
-41
lines changed

src/app/__tests__/ButtonsContainer.test.tsx

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ describe('testing the bottom buttons', () => {
4040
dispatch.mockClear();
4141
useStoreContext.mockClear();
4242
currentTab.mode = {
43-
// locked: false,
4443
paused: false,
4544
persist: false,
4645
};
@@ -65,25 +64,6 @@ describe('testing the bottom buttons', () => {
6564
expect(wrapper.find('.pause-button').text()).toBe('<FontAwesomeIcon />Unlock');
6665
});
6766
});
68-
// describe('lock button testing', () => {
69-
// beforeEach(() => {
70-
// wrapper.find('.lock-button').simulate('click');
71-
// });
72-
// test('lock button dispatches upon click', () => {
73-
// expect(dispatch.mock.calls.length).toBe(1);
74-
// });
75-
76-
// test('lock button dispatches toggleMode action', () => {
77-
// expect(dispatch.mock.calls[0][0]).toEqual(toggleMode('locked'));
78-
// });
79-
80-
// test('lock button displays state', () => {
81-
// expect(wrapper.find('.lock-button').text()).toBe('Lock');
82-
// state.tabs[state.currentTab].mode.locked = true;
83-
// wrapper = shallow(<ButtonsContainer />);
84-
// expect(wrapper.find('.lock-button').text()).toBe('Unlock');
85-
// });
86-
// });
8767

8868
describe('persist button testing', () => {
8969
beforeEach(() => {

src/app/components/Diff.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function Diff(props: DiffProps) {
2727
previous = snapshots[sliderIndex - 1];
2828
}
2929

30-
// cleanning preview from stateless data
30+
// cleaning preview from stateless data
3131
const statelessCleanning = (obj:{name?:string; componentData?:object; state?:string|any;stateSnaphot?:object; children?:any[]}) => {
3232
const newObj = { ...obj };
3333
if (newObj.name === 'nameless') {

src/app/components/legend.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ export default function LegendKey(props: any) {
9494
<LegendItem
9595
key={`legend-quantile-${i}`}
9696
margin="0 5px"
97-
onClick={() => {
98-
// if (Event) alert('clicked: YO BRILLIANT GENIUS');
99-
}}
10097
>
10198
<svg width={10} height={10}>
10299
<rect
@@ -122,7 +119,6 @@ export default function LegendKey(props: any) {
122119
width: 25%;
123120
font-family: arial;
124121
font-weight: 900;
125-
// background-color: 242529;
126122
border-radius: 14px;
127123
padding: 2px 2px 2px 2px;
128124
overflow-y: auto;

src/backend/__tests__/timeJump.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
/* eslint-disable max-classes-per-file */
66
import timeJumpRequire from '../timeJump';
77
import componentActionsRecord from '../masterState';
8-
// import { ComponentData } from '../types/backendTypes';
9-
// const timeJumpRequire = require('../timeJump');
108

119
class Component {
1210
mockfn: (state) => void
@@ -65,7 +63,6 @@ describe('unit testing for timeJump.ts', () => {
6563

6664
snapShot = { tree };
6765
timeJump = timeJumpRequire(snapShot, mode);
68-
// mockFunc.mockClear()
6966
});
7067
test('calling the initial require should return a function', () => {
7168
expect(typeof timeJumpRequire).toBe('function');

tests/automated-tests/typescript/Frontend/src/scenes/lastSnapshot.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
/* eslint-disable no-undef */
22
import React, { useState, useEffect } from 'react';
3-
// import { connect } from 'react-redux';
43
import './styles.sass';
5-
// import { AnyAction } from 'redux';
6-
7-
// import * as actions from '../redux/actions/actions';
8-
// const mapStateToProps = state => ({});
9-
// const mapDispatchToProps = dispatch => ({});
104

115
const LastSnapshot = () => {
126
const [currentSnapshot, setCurrentSnapshot] = useState('');
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import React from "react";
22
import ReactDOM from "react-dom";
3-
import reactime from "reactime";
43
import App from "./component/App";
54
import "./index.css";
65
import "github-fork-ribbon-css/gh-fork-ribbon.css";
76

87
ReactDOM.render(<App />, document.getElementById("root"));
9-
// reactime(document.getElementById("root"));
8+

tests/manual-tests/NextJS/Frontend/src/scenes/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { useState } from 'react';
22
import { Provider } from 'react-redux';
33
import store from '../redux/store';
4-
// import { connect } from 'react-redux';
54
import './styles.sass';
65
import UseState from './sandboxes/useState';
76
import UseEffect from './sandboxes/useEffect';
@@ -13,10 +12,6 @@ import SetState from './sandboxes/setState';
1312
import ComponentDidMount from './sandboxes/componentDidMount';
1413
import AppContextProvider from '../context/appContextProvider';
1514

16-
// import * as actions from '../redux/actions/actions';
17-
// const mapStateToProps = state => ({});
18-
// const mapDispatchToProps = dispatch => ({});
19-
2015
const Scenes = () => {
2116
const [activeSandbox, setActiveSandbox] = useState('UseState');
2217

0 commit comments

Comments
 (0)