diff --git a/babel.config.js b/babel.config.js index 1952e0c2..4739a3f0 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,5 @@ const fs = require('fs-extra') -let extend = undefined +let extend /** * The .babelrc file has been created to assist Jest for transpiling. @@ -7,12 +7,12 @@ let extend = undefined */ if (fs.existsSync('./.babelrc')) { - extend = './.babelrc' + extend = './.babelrc' } module.exports = { - presets: [ - '@quasar/babel-preset-app' - ], - extends: extend + presets: [ + '@quasar/babel-preset-app' + ], + extends: extend } diff --git a/src/components/CscPopupMenu.vue b/src/components/CscPopupMenu.vue index f3c06ad7..64f3fbf8 100644 --- a/src/components/CscPopupMenu.vue +++ b/src/components/CscPopupMenu.vue @@ -1,5 +1,7 @@ + + diff --git a/src/components/call-forwarding/CscCfConditionPopupAll.vue b/src/components/call-forwarding/CscCfConditionPopupAll.vue index ccd05b0d..2bdf1821 100644 --- a/src/components/call-forwarding/CscCfConditionPopupAll.vue +++ b/src/components/call-forwarding/CscCfConditionPopupAll.vue @@ -1,10 +1,6 @@ diff --git a/templates/layout.vue b/templates/layout.vue index ab8816fe..f4018bbb 100644 --- a/templates/layout.vue +++ b/templates/layout.vue @@ -1,18 +1,18 @@ diff --git a/templates/page.vue b/templates/page.vue index 14561af7..a66d0452 100644 --- a/templates/page.vue +++ b/templates/page.vue @@ -1,15 +1,15 @@ diff --git a/test/jest/__tests__/demo/QBtn-demo.vue b/test/jest/__tests__/demo/QBtn-demo.vue index a5398cc5..e6a8a20f 100644 --- a/test/jest/__tests__/demo/QBtn-demo.vue +++ b/test/jest/__tests__/demo/QBtn-demo.vue @@ -1,24 +1,29 @@ diff --git a/test/jest/jest.setup.js b/test/jest/jest.setup.js index 685e98d0..19f68c60 100755 --- a/test/jest/jest.setup.js +++ b/test/jest/jest.setup.js @@ -47,6 +47,6 @@ Object.keys(originalExpect).forEach(key => (global.expect[key] = originalExpect[ */ // do this to make sure we don't get multiple hits from both webpacks when running SSR -setTimeout(()=>{ - // do nothing +setTimeout(() => { + // do nothing }, 1) diff --git a/test/jest/utils/index.js b/test/jest/utils/index.js index eeba4432..4d29e090 100755 --- a/test/jest/utils/index.js +++ b/test/jest/utils/index.js @@ -6,65 +6,65 @@ import VueRouter from 'vue-router' import Quasar, { Cookies } from 'quasar' const mockSsrContext = () => { - return { - req: { - headers: {} - }, - res: { - setHeader: () => undefined - } - } + return { + req: { + headers: {} + }, + res: { + setHeader: () => undefined + } + } } // https://eddyerburgh.me/mock-vuex-in-vue-unit-tests export const mountQuasar = (component, options = {}) => { - const localVue = createLocalVue() - const app = {} + const localVue = createLocalVue() + const app = {} - localVue.use(Vuex) - localVue.use(VueRouter) - localVue.use(Quasar) - const store = new Vuex.Store({}) - const router = new VueRouter() + localVue.use(Vuex) + localVue.use(VueRouter) + localVue.use(Quasar) + const store = new Vuex.Store({}) + const router = new VueRouter() - if (options) { - const ssrContext = options.ssr ? mockSsrContext() : null + if (options) { + const ssrContext = options.ssr ? mockSsrContext() : null - if (options.cookies) { - const cookieStorage = ssrContext ? Cookies.parseSSR(ssrContext) : Cookies - const cookies = options.cookies - Object.keys(cookies).forEach(key => { - cookieStorage.set(key, cookies[key]) - }) - } + if (options.cookies) { + const cookieStorage = ssrContext ? Cookies.parseSSR(ssrContext) : Cookies + const cookies = options.cookies + Object.keys(cookies).forEach(key => { + cookieStorage.set(key, cookies[key]) + }) + } - if (options.plugins) { - options.plugins.forEach(plugin => { - plugin({ app, store, router, Vue: localVue, ssrContext }) - }) - } - } + if (options.plugins) { + options.plugins.forEach(plugin => { + plugin({ app, store, router, Vue: localVue, ssrContext }) + }) + } + } - // mock vue-i18n - const $t = () => {} - const $tc = () => {} - const $n = () => {} - const $d = () => {} + // mock vue-i18n + const $t = () => {} + const $tc = () => {} + const $n = () => {} + const $d = () => {} - return shallowMount(component, { - localVue: localVue, - store, - router, - mocks: { $t, $tc, $n, $d }, - // Injections for Components with a QPage root Element - provide: { - pageContainer: true, - layout: { - header: {}, - right: {}, - footer: {}, - left: {} - } - } - }) + return shallowMount(component, { + localVue: localVue, + store, + router, + mocks: { $t, $tc, $n, $d }, + // Injections for Components with a QPage root Element + provide: { + pageContainer: true, + layout: { + header: {}, + right: {}, + footer: {}, + left: {} + } + } + }) }