From ab330e31d7b0b15ab22843fa6a978af4f6cdbf97 Mon Sep 17 00:00:00 2001 From: solderq35 Date: Thu, 14 Sep 2023 22:40:34 -0700 Subject: [PATCH] fix errors --- jest.config.js | 1 - src/components/account/account.vue | 8 ++++++++ src/components/account/card.vue | 18 +++--------------- src/components/account/featured.vue | 1 - src/components/account/storyCard.vue | 4 ---- src/components/admin/campaigns.vue | 4 ---- 6 files changed, 11 insertions(+), 25 deletions(-) diff --git a/jest.config.js b/jest.config.js index cb461acc..6bec3965 100644 --- a/jest.config.js +++ b/jest.config.js @@ -44,7 +44,6 @@ module.exports = { // watchman: true, transform: { '^.+\\.js$': '/node_modules/babel-jest', - '.*\\.(vue)$': '/node_modules/jest-vue-preprocessor', '.*\\.(vue)$': '/node_modules/vue-jest', '.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub', '^.+\\.jsx?$': 'babel-jest' diff --git a/src/components/account/account.vue b/src/components/account/account.vue index 811eb359..c157d0f6 100644 --- a/src/components/account/account.vue +++ b/src/components/account/account.vue @@ -56,6 +56,8 @@ export default { break } return d.toISOString() + } else { + return '' } } }, @@ -64,6 +66,8 @@ export default { if ( this.$route.path.search( 'building' ) > 0 || this.$route.path.search( 'compare' ) > 0 ) { let d = new Date() return d.toISOString() + } else { + return '' } } }, @@ -80,6 +84,8 @@ export default { default: return 'minute' } + } else { + return '' } } }, @@ -96,6 +102,8 @@ export default { default: return 15 } + } else { + return '' } } } diff --git a/src/components/account/card.vue b/src/components/account/card.vue index 4d7b829d..1cdc4f44 100644 --- a/src/components/account/card.vue +++ b/src/components/account/card.vue @@ -32,15 +32,12 @@