mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Stub sweetalert-icon in tests which use
This commit is contained in:
parent
1a21884081
commit
faa4148858
@ -1,4 +1,4 @@
|
|||||||
import { shallowMount, mount, createLocalVue } from '@vue/test-utils'
|
import { config, shallowMount, mount, createLocalVue } from '@vue/test-utils'
|
||||||
import Vuex from 'vuex'
|
import Vuex from 'vuex'
|
||||||
import Styleguide from '@human-connection/styleguide'
|
import Styleguide from '@human-connection/styleguide'
|
||||||
import ConfirmModal from './ConfirmModal.vue'
|
import ConfirmModal from './ConfirmModal.vue'
|
||||||
@ -8,6 +8,7 @@ const localVue = createLocalVue()
|
|||||||
|
|
||||||
localVue.use(Vuex)
|
localVue.use(Vuex)
|
||||||
localVue.use(Styleguide)
|
localVue.use(Styleguide)
|
||||||
|
config.stubs['sweetalert-icon'] = '<span><slot /></span>'
|
||||||
|
|
||||||
describe('ConfirmModal.vue', () => {
|
describe('ConfirmModal.vue', () => {
|
||||||
let Wrapper
|
let Wrapper
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { shallowMount, mount, createLocalVue } from '@vue/test-utils'
|
import { config, shallowMount, mount, createLocalVue } from '@vue/test-utils'
|
||||||
import ReportModal from './ReportModal.vue'
|
import ReportModal from './ReportModal.vue'
|
||||||
import Vuex from 'vuex'
|
import Vuex from 'vuex'
|
||||||
import Styleguide from '@human-connection/styleguide'
|
import Styleguide from '@human-connection/styleguide'
|
||||||
@ -7,6 +7,7 @@ const localVue = createLocalVue()
|
|||||||
|
|
||||||
localVue.use(Vuex)
|
localVue.use(Vuex)
|
||||||
localVue.use(Styleguide)
|
localVue.use(Styleguide)
|
||||||
|
config.stubs['sweetalert-icon'] = '<span><slot /></span>'
|
||||||
|
|
||||||
describe('ReportModal.vue', () => {
|
describe('ReportModal.vue', () => {
|
||||||
let wrapper
|
let wrapper
|
||||||
|
|||||||
@ -1,10 +1,11 @@
|
|||||||
import { mount, createLocalVue } from '@vue/test-utils'
|
import { config, mount, createLocalVue } from '@vue/test-utils'
|
||||||
import ChangePassword from './ChangePassword'
|
import ChangePassword from './ChangePassword'
|
||||||
import Styleguide from '@human-connection/styleguide'
|
import Styleguide from '@human-connection/styleguide'
|
||||||
|
|
||||||
const localVue = createLocalVue()
|
const localVue = createLocalVue()
|
||||||
|
|
||||||
localVue.use(Styleguide)
|
localVue.use(Styleguide)
|
||||||
|
config.stubs['sweetalert-icon'] = '<span><slot /></span>'
|
||||||
|
|
||||||
describe('ChangePassword ', () => {
|
describe('ChangePassword ', () => {
|
||||||
let wrapper
|
let wrapper
|
||||||
|
|||||||
@ -1,10 +1,11 @@
|
|||||||
import { mount, createLocalVue } from '@vue/test-utils'
|
import { config, mount, createLocalVue } from '@vue/test-utils'
|
||||||
import Request from './Request'
|
import Request from './Request'
|
||||||
import Styleguide from '@human-connection/styleguide'
|
import Styleguide from '@human-connection/styleguide'
|
||||||
|
|
||||||
const localVue = createLocalVue()
|
const localVue = createLocalVue()
|
||||||
|
|
||||||
localVue.use(Styleguide)
|
localVue.use(Styleguide)
|
||||||
|
config.stubs['sweetalert-icon'] = '<span><slot /></span>'
|
||||||
|
|
||||||
describe('Request', () => {
|
describe('Request', () => {
|
||||||
let wrapper
|
let wrapper
|
||||||
|
|||||||
@ -1,10 +1,11 @@
|
|||||||
import { mount, createLocalVue } from '@vue/test-utils'
|
import { config, mount, createLocalVue } from '@vue/test-utils'
|
||||||
import CreateUserAccount, { SignupVerificationMutation } from './CreateUserAccount'
|
import CreateUserAccount, { SignupVerificationMutation } from './CreateUserAccount'
|
||||||
import Styleguide from '@human-connection/styleguide'
|
import Styleguide from '@human-connection/styleguide'
|
||||||
|
|
||||||
const localVue = createLocalVue()
|
const localVue = createLocalVue()
|
||||||
|
|
||||||
localVue.use(Styleguide)
|
localVue.use(Styleguide)
|
||||||
|
config.stubs['sweetalert-icon'] = '<span><slot /></span>'
|
||||||
|
|
||||||
describe('CreateUserAccount', () => {
|
describe('CreateUserAccount', () => {
|
||||||
let wrapper
|
let wrapper
|
||||||
|
|||||||
@ -1,10 +1,11 @@
|
|||||||
import { mount, createLocalVue } from '@vue/test-utils'
|
import { config, mount, createLocalVue } from '@vue/test-utils'
|
||||||
import Signup, { SignupMutation, SignupByInvitationMutation } from './Signup'
|
import Signup, { SignupMutation, SignupByInvitationMutation } from './Signup'
|
||||||
import Styleguide from '@human-connection/styleguide'
|
import Styleguide from '@human-connection/styleguide'
|
||||||
|
|
||||||
const localVue = createLocalVue()
|
const localVue = createLocalVue()
|
||||||
|
|
||||||
localVue.use(Styleguide)
|
localVue.use(Styleguide)
|
||||||
|
config.stubs['sweetalert-icon'] = '<span><slot /></span>'
|
||||||
|
|
||||||
describe('Signup', () => {
|
describe('Signup', () => {
|
||||||
let wrapper
|
let wrapper
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user