Skip to content

Commit e5f336a

Browse files
committed
Corrected licenseUrl getter
1 parent c0a75fa commit e5f336a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/unit/specs/components/LicenseDetailsCard.spec.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ describe('LicenseDetailsCard.vue', () => {
88
let wrapper
99
let getters
1010
let store
11-
let i18n
1211

1312
// Always creates a shallow instance of component
1413
beforeEach(() => {
@@ -22,7 +21,7 @@ describe('LicenseDetailsCard.vue', () => {
2221
fullName: () => {
2322
return 'Attribution-ShareAlike 4.0 International'
2423
},
25-
licenseUrl: () => {
24+
licenseUrl: () => (mode) => {
2625
return 'https://creativecommons.org/licenses/by-sa/4.0/?ref=ccchooser'
2726
},
2827
iconsList: () => {
@@ -33,7 +32,7 @@ describe('LicenseDetailsCard.vue', () => {
3332
getters
3433
})
3534
const messages = require('@/locales/en.json')
36-
i18n = new VueI18n({
35+
const i18n = new VueI18n({
3736
locale: 'en',
3837
fallbackLocale: 'en',
3938
messages: messages,

0 commit comments

Comments
 (0)