Skip to content

Commit 413d98a

Browse files
committed
codebase cleaned up
1 parent f983c7d commit 413d98a

19 files changed

+7
-115
lines changed

package-lock.json

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
"dependencies": {
6363
"bower": "^1.8.8",
6464
"d3": "^4.13.0",
65-
"d3-tip": "^0.9.1",
6665
"d3-zoom": "^1.8.3",
6766
"immer": "^3.2.0",
6867
"jest-runner": "^24.9.0",

package/astParser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const acorn = require('acorn');
2+
// eslint-disable-next-line import/newline-after-import
23
const jsx = require('acorn-jsx');
3-
44
const JSXParser = acorn.Parser.extend(jsx());
55

66
// Helper function to grab the getters/setters from `elementType`

package/linkFiber.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,5 @@ module.exports = (snap, mode) => {
138138
window.addEventListener('message', ({ data: { action } }) => {
139139
if (action === 'contentScriptStarted') sendSnapshot();
140140
});
141-
// Testing sending back a function def to client
142-
// function getNextImport(filePath) {
143-
// return loadable(() => import(`${filePath}`))
144-
// Got relative file path to return back to client code
145-
// return (`myTestString${filePath}`);
146-
// return getNextImport('./UseStateHook');
147-
// return 'Testing outside';
148-
// const OtherComponent = loadable(() => import('./OtherComponent'))
149141
};
150142
};

package/tree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable no-console */
22
/* eslint-disable no-param-reassign */
33

4-
// this is the current snapshot that is being sent to the snapshots array. it is an object
4+
// this is the current snapshot that is being sent to the snapshots array.
55
class Tree {
66
constructor(component, useStateInstead = false, name) {
77
// special case when component is root

src/app/__tests__/Chart.test.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react/jsx-props-no-spreading */
12
/* eslint-disable import/no-extraneous-dependencies */
23
/* eslint-disable import/no-named-as-default-member */
34
/* eslint-disable import/no-named-as-default */

src/app/__tests__/MainContainer.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-disable react/jsx-filename-extension */
2-
32
import { shallow, configure } from 'enzyme';
43
import React from 'react';
54
import Adapter from 'enzyme-adapter-react-16';

src/app/__tests__/TravelContainer.test.js

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -81,25 +81,4 @@ describe('testing the play-button', () => {
8181
wrapper = shallow(<TravelContainer snapshotsLength={2} />);
8282
expect(wrapper.find('.play-button').text()).toBe('Play');
8383
});
84-
});
85-
86-
// describe('testing the playback speed', () => {
87-
// test('if the playback dropdown states 0.5x the speed should be 0.5x', () => {
88-
// const wrapper = shallow(<TravelContainer {...props} />);
89-
// wrapper.find('Dropdown').simulate('change', { value: ['val'] });
90-
// wrapper.find('select').simulate('change', { value: 'hello' });
91-
// console.log('val', wrapper.find('Dropdown').simulate('select', { value: ['val'] }));
92-
// expect(wrapper.find('Dropdown').text()).toBe('0.5x');
93-
// expect(wrapper.find('select [selected]').val()).toEqual('key');
94-
// });
95-
// test('if the playback dropdown states 1x the speed should be 1x', () => {
96-
// const wrapper = shallow(<TravelContainer {...dropdownProps} />);
97-
98-
// expect(wrapper.find('Dropdown').label).toBe('1.0x');
99-
// });
100-
// test('if the playback dropdown states 2x the speed should be 2x', () => {
101-
// const wrapper = shallow(<TravelContainer {...dropdownProps} />);
102-
// wrapper.find('Dropdown').simulate('click');
103-
// expect(wrapper.find('Dropdown').label).toBe('2.0x');
104-
// });
105-
// });
84+
});

src/app/__tests__/switchState.test.jsx

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/app/components/Action.jsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
3-
43
import { changeView, changeSlider } from '../actions/actions';
54

6-
// Launch Feature: Figure out changeView vs changeSlider
7-
// Should we make the btn bigger instead and keep the functionality?
8-
// div onclick event triggers the changeView method
9-
105
const Action = props => {
116
const {
127
selected, index, sliderIndex, dispatch,

0 commit comments

Comments
 (0)