Skip to content

Commit 8268ad7

Browse files
authored
Merge pull request #144 from oslabs-beta/master
Contribution to Chronos for version 5.2
2 parents 6f93259 + 1ddc77b commit 8268ad7

File tree

110 files changed

+3541
-34183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+3541
-34183
lines changed

.eslintrc.json

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
2+
"globals": {
3+
"NodeJS": true,
4+
"JSX": true,
5+
"Electron": true
6+
},
27
"plugins": ["react", "prettier"],
38
"parser": "babel-eslint",
49
"parserOptions": {
@@ -16,6 +21,7 @@
1621
},
1722
"extends": ["airbnb", "eslint:recommended", "plugin:react/recommended", "prettier"],
1823
"rules": {
24+
"react/display-name": "off",
1925
"prettier/prettier": "error",
2026
"no-unused-vars": [
2127
"warn",
@@ -35,6 +41,28 @@
3541
"react/no-array-index-key": "warn",
3642
"no-restricted-syntax": "off",
3743
"guard-for-in": "off",
38-
"no-param-reassign": "off"
44+
"no-param-reassign": "off",
45+
"import/extensions": [
46+
"error",
47+
"ignorePackages",
48+
{
49+
"js": "never",
50+
"jsx": "never",
51+
"ts": "never",
52+
"tsx": "never",
53+
"mjs": "never"
54+
}
55+
]
56+
},
57+
"settings": {
58+
"import/extensions": [".js", ".mjs", ".jsx", ".ts", ".tsx"],
59+
// "import/parsers": {
60+
// "@typescript-eslint/parser": [".ts", ".tsx"]
61+
// },
62+
"import/resolver": {
63+
"node": {
64+
"extensions": [".js", ".jsx", ".ts", ".tsx"]
65+
}
66+
}
3967
}
40-
}
68+
}

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ build
66
release-builds
77
coverage
88
__tests__/**/__snapshots__
9-
.env
9+
# .env
10+
users.json
1011

1112
# Compiled source #
1213
###################
@@ -44,5 +45,4 @@ __tests__/**/__snapshots__
4445
.Spotlight-V100
4546
.Trashes
4647
ehthumbs.db
47-
Thumbs.db
48-
48+
Thumbs.db

This is the Command for the window

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export DISPLAY="`sed -n 's/nameserver //p' /etc/resolv.conf`:0"

__tests__/app/App.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import ReactDOM from 'react-dom';
33
import { shallow, mount } from 'enzyme';
44
import App from '../../app/App';
5-
describe('<App />', () => {
5+
xdescribe('<App />', () => {
66
let wrapper: any;
77

88
beforeAll(() => {

__tests__/app/components/Copyright.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Copyright from '../../../app/components/Copyright';
88

99
Enzyme.configure({ adapter: new Adapter() });
1010

11-
describe('React unit test', () => {
11+
xdescribe('React unit test', () => {
1212
describe('<Copyright/>', () => {
1313
let wrapper: any;
1414
let mount: any;

__tests__/app/components/Home.test.tsx

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

__tests__/app/components/Settings.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Settings from '../../../app/components/Settings';
66
const { ipcRenderer } = require('electron');
77
jest.mock('electron', () => ({ ipcRenderer: { sendSync: jest.fn() } }));
88

9-
describe('<Settings />', () => {
9+
xdescribe('<Settings />', () => {
1010
let wrapper: any;
1111
let mount: any;
1212
let shallow: any;

__tests__/app/components/Splash.test.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@ import Splash from '../../../app/components/Splash';
3131
configure({ adapter: new Adapter() });
3232
// Test if the splash goes away after 3 seconds
3333
// Check if the boolean changes to false after 3 seconds
34-
describe('Splash test', () => {
34+
xdescribe('Splash test', () => {
3535
// const [firstVisit, setFirstVisit] = React.useState(true);
36-
const setFirstVisit = () => {
37-
return true;
38-
};
36+
const setFirstVisit = () => true;
3937
// const component = shallow(<Splash />);
4038
const wrapper = mount(<Splash setFirstVisit={setFirstVisit} />);
4139
it('firstVisit should be true for the first three seconds on mount', () => {

__tests__/app/containers/DashboardContainer.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import SidebarContainer from '../../../app/containers/SidebarContainer'
99
import ApplicationContextProvider from '../../../app/context/ApplicationContext'
1010
// configure({ adapter: new Adapter() });
1111

12-
describe('<DashboardContainer />', () => {
12+
xdescribe('<DashboardContainer />', () => {
1313
it(' renders component MainContainer ', () => {
1414
const wrapper = shallow(<DashboardContainer />);
1515

__tests__/app/containers/SidebarContainer.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import SettingsIcon from '@material-ui/icons/Settings';
99
import SidebarContainer from '../../../app/containers/SidebarContainer';
1010
import { Link } from 'react-router-dom';
1111

12-
describe('<SidebarContainer />', () => {
12+
xdescribe('<SidebarContainer />', () => {
1313
it('should render an <img> tag with the Chronos logo', () => {
1414
const wrapper = shallow(<SidebarContainer />);
1515
expect(wrapper.contains(<img alt="Chronos" id="logo" src="../assets/logo.svg" />)).toBe(true);

0 commit comments

Comments
 (0)