Skip to content

Commit

Permalink
fix: apply code tweaks and add minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sniperadmin committed Jun 7, 2020
1 parent 320737e commit 313f549
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 11 deletions.
2 changes: 0 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ module.exports = {
plugins: [
['transform-imports', {
vuetify: {
// 'transform': 'vuetify/es5/components/',
transform: 'vuetify/es5/components/${member}', // eslint-disable-line no-template-curly-in-string
preventFullImport: false
}
}]
// ['istanbul']
]
}
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
moduleFileExtensions: ['js', 'vue', 'json'],
transform: {
'^.+\\.js$': 'babel-jest',
'.*\\.(vue)$': 'vue-jest'
'.*\\.vue$': 'vue-jest'
},
collectCoverage: true,
collectCoverageFrom: [
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"stylus": "^0.54.7",
"stylus-loader": "^3.0.2",
"vue-cli-plugin-vuetify": "^2.0.5",
"vue-jest": "^3.0.5",
"vue-template-compiler": "^2.6.10",
"vuetify-loader": "^1.3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</template>

<script>
import AmbAppFrame from './components/AppFrame.vue'
import AmbAppFrame from '@/components/AppFrame.vue'
export default {
name: 'App',
components: {
Expand Down
2 changes: 1 addition & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
</template>

<script>
import UpdateNotification from '../components/UpdateNotification'
import UpdateNotification from '@/components/UpdateNotification'
export default {
name: 'Home',
Expand Down
2 changes: 1 addition & 1 deletion src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
</v-container>
</template>
<script>
import AmbBanner from '../components/shared/Banner.vue'
import AmbBanner from '@/components/shared/Banner.vue'
import AmbListItem from '@/components/shared/ListItem.vue'
import { mapActions, mapState } from 'vuex'
import {
Expand Down
2 changes: 1 addition & 1 deletion src/views/Timeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
<script>
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
import InfiniteLoading from 'vue-infinite-loading'
import DetectionBoxes from '../components/DetectionBoxes.vue'
import DetectionBoxes from '@/components/DetectionBoxes.vue'
import { EdgeAPI } from '@/remote/edgeAPI'
import { mapState } from 'vuex'
import moment from 'moment'
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/components/shared/Banner.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vue from 'vue'
import { mount, createLocalVue } from '@vue/test-utils'
import Vuetify from 'vuetify'
import Banner from '@/components/Banner.vue'
import Banner from '@/components/shared/Banner.vue'

describe('Banner', () => {
let wrapper
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/components/shared/Button.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vue from 'vue'
import { mount, createLocalVue } from '@vue/test-utils'
import Vuetify from 'vuetify'
import Button from '@/components/Button.vue'
import Button from '@/components/shared/Button.vue'

describe('Button', () => {
let wrapper
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/navbar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { mount, createLocalVue } from '@vue/test-utils'
import Vuetify from 'vuetify'
import VueX from 'vuex'
import VueRouter from 'vue-router'
import NavBar from '../../src/components/NavBar.vue'
import NavBar from '@/components/NavBar.vue'

describe('NavBar', () => {
// global
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/settings.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { mount, createLocalVue } from '@vue/test-utils'
import Vuetify from 'vuetify'
import VueX from 'vuex'
import VueRouter from 'vue-router'
import Settings from '../../src/views/Settings.vue'
import Settings from '@/views/Settings.vue'

describe('NavBar', () => {
// global
Expand Down

0 comments on commit 313f549

Please sign in to comment.