File tree Expand file tree Collapse file tree 7 files changed +2
-41
lines changed
automated-tests/typescript/Frontend/src/scenes
NextJS/Frontend/src/scenes Expand file tree Collapse file tree 7 files changed +2
-41
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ describe('testing the bottom buttons', () => {
40
40
dispatch . mockClear ( ) ;
41
41
useStoreContext . mockClear ( ) ;
42
42
currentTab . mode = {
43
- // locked: false,
44
43
paused : false ,
45
44
persist : false ,
46
45
} ;
@@ -65,25 +64,6 @@ describe('testing the bottom buttons', () => {
65
64
expect ( wrapper . find ( '.pause-button' ) . text ( ) ) . toBe ( '<FontAwesomeIcon />Unlock' ) ;
66
65
} ) ;
67
66
} ) ;
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
- // });
87
67
88
68
describe ( 'persist button testing' , ( ) => {
89
69
beforeEach ( ( ) => {
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function Diff(props: DiffProps) {
27
27
previous = snapshots [ sliderIndex - 1 ] ;
28
28
}
29
29
30
- // cleanning preview from stateless data
30
+ // cleaning preview from stateless data
31
31
const statelessCleanning = ( obj :{ name ?:string ; componentData ?:object ; state ?:string | any ; stateSnaphot ?:object ; children ?:any [ ] } ) => {
32
32
const newObj = { ...obj } ;
33
33
if ( newObj . name === 'nameless' ) {
Original file line number Diff line number Diff line change @@ -94,9 +94,6 @@ export default function LegendKey(props: any) {
94
94
< LegendItem
95
95
key = { `legend-quantile-${ i } ` }
96
96
margin = "0 5px"
97
- onClick = { ( ) => {
98
- // if (Event) alert('clicked: YO BRILLIANT GENIUS');
99
- } }
100
97
>
101
98
< svg width = { 10 } height = { 10 } >
102
99
< rect
@@ -122,7 +119,6 @@ export default function LegendKey(props: any) {
122
119
width: 25%;
123
120
font-family: arial;
124
121
font-weight: 900;
125
- // background-color: 242529;
126
122
border-radius: 14px;
127
123
padding: 2px 2px 2px 2px;
128
124
overflow-y: auto;
Original file line number Diff line number Diff line change 5
5
/* eslint-disable max-classes-per-file */
6
6
import timeJumpRequire from '../timeJump' ;
7
7
import componentActionsRecord from '../masterState' ;
8
- // import { ComponentData } from '../types/backendTypes';
9
- // const timeJumpRequire = require('../timeJump');
10
8
11
9
class Component {
12
10
mockfn : ( state ) => void
@@ -65,7 +63,6 @@ describe('unit testing for timeJump.ts', () => {
65
63
66
64
snapShot = { tree } ;
67
65
timeJump = timeJumpRequire ( snapShot , mode ) ;
68
- // mockFunc.mockClear()
69
66
} ) ;
70
67
test ( 'calling the initial require should return a function' , ( ) => {
71
68
expect ( typeof timeJumpRequire ) . toBe ( 'function' ) ;
Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-undef */
2
2
import React , { useState , useEffect } from 'react' ;
3
- // import { connect } from 'react-redux';
4
3
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 => ({});
10
4
11
5
const LastSnapshot = ( ) => {
12
6
const [ currentSnapshot , setCurrentSnapshot ] = useState ( '' ) ;
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import ReactDOM from "react-dom" ;
3
- import reactime from "reactime" ;
4
3
import App from "./component/App" ;
5
4
import "./index.css" ;
6
5
import "github-fork-ribbon-css/gh-fork-ribbon.css" ;
7
6
8
7
ReactDOM . render ( < App /> , document . getElementById ( "root" ) ) ;
9
- // reactime(document.getElementById("root"));
8
+
Original file line number Diff line number Diff line change 1
1
import React , { useState } from 'react' ;
2
2
import { Provider } from 'react-redux' ;
3
3
import store from '../redux/store' ;
4
- // import { connect } from 'react-redux';
5
4
import './styles.sass' ;
6
5
import UseState from './sandboxes/useState' ;
7
6
import UseEffect from './sandboxes/useEffect' ;
@@ -13,10 +12,6 @@ import SetState from './sandboxes/setState';
13
12
import ComponentDidMount from './sandboxes/componentDidMount' ;
14
13
import AppContextProvider from '../context/appContextProvider' ;
15
14
16
- // import * as actions from '../redux/actions/actions';
17
- // const mapStateToProps = state => ({});
18
- // const mapDispatchToProps = dispatch => ({});
19
-
20
15
const Scenes = ( ) => {
21
16
const [ activeSandbox , setActiveSandbox ] = useState ( 'UseState' ) ;
22
17
You can’t perform that action at this time.
0 commit comments