Skip to content

Commit 860d8d5

Browse files
committed
chore: update import paths and snapshots
1 parent 20a24e9 commit 860d8d5

15 files changed

+28
-22
lines changed

jest.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const ignoredModules = ['@coreui/icons', '@coreui/utils'].join('|')
2+
13
module.exports = {
24
moduleFileExtensions: [
35
'js',
@@ -10,7 +12,7 @@ module.exports = {
1012
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
1113
'^.+\\.(js|jsx)?$': '<rootDir>/node_modules/babel-jest'
1214
},
13-
transformIgnorePatterns: ['/node_modules/(?!@coreui/icons)'],
15+
transformIgnorePatterns: [`<rootDir>/node_modules/(?!${ignoredModules})`],
1416
moduleNameMapper: {
1517
'^@/(.*)$': '<rootDir>/src/$1'
1618
},

src/views/charts/CChartBarExample.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</template>
77

88
<script>
9-
import { CChartBar } from '@coreui/coreui-vue-chartjs'
9+
import { CChartBar } from '@coreui/vue-chartjs'
1010
1111
export default {
1212
name: 'CChartBarExample',

src/views/charts/CChartBarSimple.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
</template>
88

99
<script>
10-
import { CChartBar } from '@coreui/coreui-vue-chartjs'
11-
import { getColor, deepObjectsMerge } from '@coreui/coreui/dist/js/coreui-utilities'
10+
import { CChartBar } from '@coreui/vue-chartjs'
11+
import { getColor, deepObjectsMerge } from '@coreui/utils/src'
12+
1213
export default {
1314
name: 'CChartBarSimple',
1415
components: { CChartBar },

src/views/charts/CChartDoughnutExample.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</template>
77

88
<script>
9-
import { CChartDoughnut } from '@coreui/coreui-vue-chartjs'
9+
import { CChartDoughnut } from '@coreui/vue-chartjs'
1010
1111
export default {
1212
name: 'CChartDoughnutExample',

src/views/charts/CChartLineExample.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</template>
77

88
<script>
9-
import { CChartLine } from '@coreui/coreui-vue-chartjs'
9+
import { CChartLine } from '@coreui/vue-chartjs'
1010
1111
export default {
1212
name: 'CChartLineExample',

src/views/charts/CChartLineSimple.vue

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
</template>
88

99
<script>
10-
import { CChartLine } from '@coreui/coreui-vue-chartjs'
11-
import { getColor, deepObjectsMerge } from '@coreui/coreui/dist/js/coreui-utilities'
10+
import { CChartLine } from '@coreui/vue-chartjs'
11+
import { getColor, deepObjectsMerge } from '@coreui/utils/src'
12+
1213
export default {
1314
name: 'CChartLineSimple',
1415
components: { CChartLine },
@@ -48,19 +49,12 @@ export default {
4849
data: this.dataPoints,
4950
borderColor: getColor(this.borderColor),
5051
backgroundColor: getColor(this.backgroundColor),
51-
pointBackgroundColor: this.pointBackgroundColor,
52+
pointBackgroundColor: getColor(this.pointHoverColor),
5253
pointHoverBackgroundColor: getColor(this.pointHoverColor),
5354
label: this.label
5455
}
5556
]
5657
},
57-
pointBackgroundColor () {
58-
if (this.backgroundColor === 'transparent') {
59-
return '#fff'
60-
} else {
61-
return getColor(this.backgroundColor)
62-
}
63-
},
6458
pointedOptions () {
6559
return {
6660
scales: {

src/views/charts/CChartPieExample.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</template>
77

88
<script>
9-
import { CChartPie } from '@coreui/coreui-vue-chartjs'
9+
import { CChartPie } from '@coreui/vue-chartjs'
1010
1111
export default {
1212
name: 'CChartPieExample',

src/views/charts/CChartPolarAreaExample.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</template>
1111

1212
<script>
13-
import { CChartPolarArea } from '@coreui/coreui-vue-chartjs'
13+
import { CChartPolarArea } from '@coreui/vue-chartjs'
1414
1515
export default {
1616
name: 'CChartPolarAreaExample',

src/views/charts/CChartRadarExample.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</template>
1111

1212
<script>
13-
import { CChartRadar } from '@coreui/coreui-vue-chartjs'
13+
import { CChartRadar } from '@coreui/vue-chartjs'
1414
1515
export default {
1616
name: 'CChartRadarExample',

src/views/charts/Charts.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
</CCardGroup>
5757
</div>
5858
</template>
59+
5960
<script>
6061
import * as Charts from './index.js'
61-
6262
export default {
6363
name: 'Charts',
6464
components: {

src/views/charts/MainChartExample.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</template>
88

99
<script>
10-
import { CChartLine } from '@coreui/coreui-vue-chartjs'
11-
import { getColor, hexToRgba } from '@coreui/coreui/dist/js/coreui-utilities'
10+
import { CChartLine } from '@coreui/vue-chartjs'
11+
import { getColor, hexToRgba } from '@coreui/utils/src'
1212
1313
function random (min, max) {
1414
return Math.floor(Math.random() * (max - min + 1) + min)

tests/unit/containers/__snapshots__/TheHeaderDropdownAccnt.spec.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ exports[`TheHeaderDropdownAccnt.vue renders correctly 1`] = `
77
class="c-header-nav-items"
88
flip="true"
99
innav="true"
10+
offset="0"
1011
placement="bottom-end"
1112
togglertext="Dropdown"
1213
>

tests/unit/views/base/__snapshots__/Navbars.spec.js.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ exports[`Navbars.vue renders correctly 1`] = `
121121
caret="true"
122122
flip="true"
123123
innav="true"
124+
offset="0"
124125
placement="bottom-end"
125126
togglertext="Lang"
126127
>
@@ -169,6 +170,7 @@ exports[`Navbars.vue renders correctly 1`] = `
169170
caret="true"
170171
flip="true"
171172
innav="true"
173+
offset="0"
172174
placement="bottom-end"
173175
togglertext="User"
174176
>
@@ -358,6 +360,7 @@ exports[`Navbars.vue renders correctly 1`] = `
358360
caret="true"
359361
flip="true"
360362
innav="true"
363+
offset="0"
361364
placement="bottom-end"
362365
togglertext="Lang"
363366
>
@@ -406,6 +409,7 @@ exports[`Navbars.vue renders correctly 1`] = `
406409
caret="true"
407410
flip="true"
408411
innav="true"
412+
offset="0"
409413
placement="bottom-end"
410414
togglertext="User"
411415
>

tests/unit/views/base/__snapshots__/Navs.spec.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ exports[`Navs.vue renders correctly 1`] = `
453453
flip="true"
454454
id="nav7_ddown"
455455
nav=""
456+
offset="0"
456457
placement="bottom-end"
457458
togglertext="Dropdown"
458459
>

tests/unit/views/buttons/__snapshots__/ButtonGroups.spec.js.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ exports[`ButtonGroups.vue renders correctly 1`] = `
381381
caret="true"
382382
color="success"
383383
flip="true"
384+
offset="0"
384385
placement="bottom-start"
385386
right=""
386387
text="Menu"
@@ -438,6 +439,7 @@ exports[`ButtonGroups.vue renders correctly 1`] = `
438439
caret="true"
439440
color="info"
440441
flip="true"
442+
offset="0"
441443
placement="bottom-start"
442444
right=""
443445
split="true"
@@ -807,6 +809,7 @@ exports[`ButtonGroups.vue renders correctly 1`] = `
807809
class="mx-1"
808810
color="secondary"
809811
flip="true"
812+
offset="0"
810813
placement="bottom-end"
811814
togglertext="Dropdown"
812815
>

0 commit comments

Comments
 (0)