Skip to content

Commit 68ce41d

Browse files
committed
fix: fix template testing
1 parent 52163bb commit 68ce41d

File tree

7 files changed

+943
-918
lines changed

7 files changed

+943
-918
lines changed

package-lock.json

+921-908
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@coreui/coreui": "^3.2.2",
2828
"@coreui/icons": "2.0.0-beta.4",
2929
"@coreui/icons-react": "^1.0.1",
30-
"@coreui/react": "^3.0.3",
30+
"@coreui/react": "^3.2.0",
3131
"@coreui/react-chartjs": "^1.0.0",
3232
"@coreui/utils": "^1.3.1",
3333
"classnames": "^2.2.6",

src/App.test.js

+17-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1-
import React from 'react';
2-
import {shallow} from 'enzyme/build';
3-
import App from './App';
1+
import React from 'react'
2+
import { shallow } from 'enzyme/build'
3+
import App from './App'
4+
import ChartLineSimple from './views/charts/ChartLineSimple'
5+
import Dashboard from './views/dashboard/Dashboard.js'
46

57

68
it('mounts without crashing', () => {
7-
const wrapper = shallow(<App />);
9+
const wrapper = shallow(<App/>)
810
wrapper.unmount()
9-
});
11+
})
12+
13+
it('mounts dashboard without crashing', () => {
14+
const wrapper = shallow(<Dashboard/>)
15+
wrapper.unmount()
16+
})
17+
18+
it('mounts charts without crashing', () => {
19+
const wrapper = shallow(<ChartLineSimple/> )
20+
wrapper.unmount()
21+
})

src/views/charts/ChartBarSimple.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
3-
import { getColor } from '@coreui/utils/src'
3+
import { getColor } from '@coreui/utils'
44
import { CChartBar } from '@coreui/react-chartjs'
55

66
const ChartBarSimple = props => {

src/views/charts/ChartLineSimple.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
3-
import { getColor, deepObjectsMerge } from '@coreui/utils/src'
3+
import { getColor, deepObjectsMerge } from '@coreui/utils'
44
import { CChartLine } from '@coreui/react-chartjs'
55

66
const ChartLineSimple = props => {

src/views/charts/MainChartExample.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import { CChartLine } from '@coreui/react-chartjs'
3-
import { getStyle, hexToRgba } from '@coreui/utils/src'
3+
import { getStyle, hexToRgba } from '@coreui/utils'
44

55
const brandSuccess = getStyle('success') || '#4dbd74'
66
const brandInfo = getStyle('info') || '#20a8d8'

src/views/theme/colors/Colors.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useEffect, useState, createRef } from 'react'
22
import classNames from 'classnames'
33
import { CRow, CCol } from '@coreui/react'
4-
import { rgbToHex } from '@coreui/utils/src'
4+
import { rgbToHex } from '@coreui/utils'
55

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

0 commit comments

Comments
 (0)