storj/web/satellite/tests/unit/project/buckets/BucketItem.spec.ts
Yingrong Zhao 774ae017e3 satellite/{satellitedb, web}: display object count in satellite UI
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
2021-11-01 18:26:13 +00:00

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();
});
});