2020-03-18 17:07:29 +00:00
|
|
|
// Copyright (C) 2020 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
import BucketItem from '@/components/project/buckets/BucketItem.vue';
|
|
|
|
|
|
|
|
import { Bucket } from '@/types/buckets';
|
|
|
|
import { createLocalVue, shallowMount } from '@vue/test-utils';
|
|
|
|
|
|
|
|
const localVue = createLocalVue();
|
|
|
|
|
2021-10-28 16:50:06 +01:00
|
|
|
const bucket = new Bucket('name', 1, 1, 1, 1, new Date(), new Date());
|
2020-03-18 17:07:29 +00:00
|
|
|
|
|
|
|
describe('BucketItem.vue', () => {
|
|
|
|
it('renders correctly', (): void => {
|
|
|
|
const wrapper = shallowMount(BucketItem, {
|
|
|
|
localVue,
|
|
|
|
propsData: {
|
|
|
|
itemData: bucket,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
expect(wrapper).toMatchSnapshot();
|
|
|
|
});
|
|
|
|
});
|