Skip to content

Commit

Permalink
fix: fix template testing
Browse files Browse the repository at this point in the history
  • Loading branch information
woothu committed Jul 30, 2020
1 parent 52163bb commit 68ce41d
Show file tree
Hide file tree
Showing 7 changed files with 943 additions and 918 deletions.
1,829 changes: 921 additions & 908 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -27,7 +27,7 @@
"@coreui/coreui": "^3.2.2",
"@coreui/icons": "2.0.0-beta.4",
"@coreui/icons-react": "^1.0.1",
"@coreui/react": "^3.0.3",
"@coreui/react": "^3.2.0",
"@coreui/react-chartjs": "^1.0.0",
"@coreui/utils": "^1.3.1",
"classnames": "^2.2.6",
Expand Down
22 changes: 17 additions & 5 deletions src/App.test.js
@@ -1,9 +1,21 @@
import React from 'react';
import {shallow} from 'enzyme/build';
import App from './App';
import React from 'react'
import { shallow } from 'enzyme/build'
import App from './App'
import ChartLineSimple from './views/charts/ChartLineSimple'
import Dashboard from './views/dashboard/Dashboard.js'


it('mounts without crashing', () => {
const wrapper = shallow(<App />);
const wrapper = shallow(<App/>)
wrapper.unmount()
});
})

it('mounts dashboard without crashing', () => {
const wrapper = shallow(<Dashboard/>)
wrapper.unmount()
})

it('mounts charts without crashing', () => {
const wrapper = shallow(<ChartLineSimple/> )
wrapper.unmount()
})
2 changes: 1 addition & 1 deletion src/views/charts/ChartBarSimple.js
@@ -1,6 +1,6 @@
import React from 'react'
import PropTypes from 'prop-types'
import { getColor } from '@coreui/utils/src'
import { getColor } from '@coreui/utils'
import { CChartBar } from '@coreui/react-chartjs'

const ChartBarSimple = props => {
Expand Down
2 changes: 1 addition & 1 deletion src/views/charts/ChartLineSimple.js
@@ -1,6 +1,6 @@
import React from 'react'
import PropTypes from 'prop-types'
import { getColor, deepObjectsMerge } from '@coreui/utils/src'
import { getColor, deepObjectsMerge } from '@coreui/utils'
import { CChartLine } from '@coreui/react-chartjs'

const ChartLineSimple = props => {
Expand Down
2 changes: 1 addition & 1 deletion src/views/charts/MainChartExample.js
@@ -1,6 +1,6 @@
import React from 'react'
import { CChartLine } from '@coreui/react-chartjs'
import { getStyle, hexToRgba } from '@coreui/utils/src'
import { getStyle, hexToRgba } from '@coreui/utils'

const brandSuccess = getStyle('success') || '#4dbd74'
const brandInfo = getStyle('info') || '#20a8d8'
Expand Down
2 changes: 1 addition & 1 deletion src/views/theme/colors/Colors.js
@@ -1,7 +1,7 @@
import React, { useEffect, useState, createRef } from 'react'
import classNames from 'classnames'
import { CRow, CCol } from '@coreui/react'
import { rgbToHex } from '@coreui/utils/src'
import { rgbToHex } from '@coreui/utils'

const ThemeView = () => {
const [color, setColor] = useState('rgb(255, 255, 255)')
Expand Down

0 comments on commit 68ce41d

Please sign in to comment.