Skip to content

Commit

Permalink
refactor: convert vue filters to utils in test files regarding deprec…
Browse files Browse the repository at this point in the history
…ation notice

- vue filters are deprecated un vue3
  • Loading branch information
Benjent committed Sep 9, 2024
1 parent b908f3d commit cd9d335
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
5 changes: 0 additions & 5 deletions frontend/tests/unit/Tracers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ localVue.use(Buefy)
localVue.use(Vuex)

localVue.component('font-awesome-icon', FontAwesomeIcon)
localVue.filter('capitalize', function(value) {
if (!value) return ''
value = value.toString()
return value.charAt(0).toUpperCase() + value.slice(1)
})

describe('Tracers.vue', () => {
let store
Expand Down
5 changes: 0 additions & 5 deletions frontend/tests/unit/TracersGrid.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import pages from '../../src/store/modules/pages'
import tracers from '../../src/store/modules/tracers'
import Buefy from 'buefy'
import VueRouter from 'vue-router'
import moment from 'moment'
import tracersData from './data/tracers'
import i18n from '../../src/i18n'

Expand All @@ -17,10 +16,6 @@ localVue.use(Buefy)
localVue.use(Vuex)
localVue.use(VueRouter)

localVue.filter('formatDate', value =>
moment(String(value)).format('MM/DD/YYYY')
)

const router = new VueRouter()

describe('Page.vue', () => {
Expand Down
4 changes: 0 additions & 4 deletions frontend/tests/unit/TracersList.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import tracers from '../../src/store/modules/tracers'
import Buefy from 'buefy'
import VueRouter from 'vue-router'
import i18n from '../../src/i18n'
import moment from 'moment'
import tracersData from './data/tracers'

VueTestUtils.config.mocks.$t = key => key
Expand All @@ -16,9 +15,6 @@ const localVue = VueTestUtils.createLocalVue()
localVue.use(Buefy)
localVue.use(Vuex)
localVue.use(VueRouter)
localVue.filter('formatDate', value =>
moment(String(value)).format('MM/DD/YYYY')
)

const router = new VueRouter()

Expand Down

0 comments on commit cd9d335

Please sign in to comment.