774ae017e3
Even though we want to start charging segment fee instead of object fee, it's hard for users to understand what a segment is. This PR adds the object count back in the UI alongside with segment count to help address the issue. Change-Id: I92eb42c769d350eba68a72443deffec5c278359c
25 lines
658 B
TypeScript
25 lines
658 B
TypeScript
// 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();
|
|
|
|
const bucket = new Bucket('name', 1, 1, 1, 1, new Date(), new Date());
|
|
|
|
describe('BucketItem.vue', () => {
|
|
it('renders correctly', (): void => {
|
|
const wrapper = shallowMount(BucketItem, {
|
|
localVue,
|
|
propsData: {
|
|
itemData: bucket,
|
|
},
|
|
});
|
|
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|