Fix import for newly named/moved component

This commit is contained in:
mattwr18 2020-01-15 18:20:12 +01:00
parent 81cbb7a85c
commit 9e639c23a7
2 changed files with 6 additions and 6 deletions

View File

@ -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', () => {

View File

@ -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,