mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix import for newly named/moved component
This commit is contained in:
parent
81cbb7a85c
commit
9e639c23a7
@ -1,17 +1,17 @@
|
|||||||
import { mount } from '@vue/test-utils'
|
import { mount } from '@vue/test-utils'
|
||||||
|
|
||||||
import Paginate from './Paginate'
|
import PaginationButtons from './PaginationButtons'
|
||||||
|
|
||||||
const localVue = global.localVue
|
const localVue = global.localVue
|
||||||
|
|
||||||
describe('Paginate.vue', () => {
|
describe('PaginationButtons.vue', () => {
|
||||||
let propsData = {}
|
let propsData = {}
|
||||||
let wrapper
|
let wrapper
|
||||||
let nextButton
|
let nextButton
|
||||||
let backButton
|
let backButton
|
||||||
|
|
||||||
const Wrapper = () => {
|
const Wrapper = () => {
|
||||||
return mount(Paginate, { propsData, localVue })
|
return mount(PaginationButtons, { propsData, localVue })
|
||||||
}
|
}
|
||||||
|
|
||||||
describe('mount', () => {
|
describe('mount', () => {
|
||||||
|
|||||||
@ -1,16 +1,16 @@
|
|||||||
import { storiesOf } from '@storybook/vue'
|
import { storiesOf } from '@storybook/vue'
|
||||||
import { withA11y } from '@storybook/addon-a11y'
|
import { withA11y } from '@storybook/addon-a11y'
|
||||||
import { action } from '@storybook/addon-actions'
|
import { action } from '@storybook/addon-actions'
|
||||||
import Paginate from '~/components/Paginate/Paginate'
|
import PaginationButtons from '~/components/_new/generic/PaginationButtons/PaginationButtons'
|
||||||
import helpers from '~/storybook/helpers'
|
import helpers from '~/storybook/helpers'
|
||||||
|
|
||||||
helpers.init()
|
helpers.init()
|
||||||
|
|
||||||
storiesOf('Paginate', module)
|
storiesOf('PaginationButtons', module)
|
||||||
.addDecorator(withA11y)
|
.addDecorator(withA11y)
|
||||||
.addDecorator(helpers.layout)
|
.addDecorator(helpers.layout)
|
||||||
.add('basic pagination', () => ({
|
.add('basic pagination', () => ({
|
||||||
components: { Paginate },
|
components: { PaginationButtons },
|
||||||
data: () => ({
|
data: () => ({
|
||||||
hasNext: true,
|
hasNext: true,
|
||||||
hasPrevious: false,
|
hasPrevious: false,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user