storj/web/satellite/tests/unit/apiKeys/ApiKeysItem.spec.ts
VitaliiShpital dd9eaafceb web/satellite: api keys component slightly refactored
Change-Id: I8d2bde0a7d2c2778ba3c906232a1a38aaf94cff3
2020-07-08 10:13:39 +00:00

21 lines
606 B
TypeScript

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
import ApiKeysItem from '@/components/apiKeys/ApiKeysItem.vue';
import { mount } from '@vue/test-utils';
describe('ApiKeysItem.vue', (): void => {
it('renders correctly', (): void => {
const wrapper = mount(ApiKeysItem);
expect(wrapper).toMatchSnapshot();
});
it('renders correctly with default props', (): void => {
const wrapper = mount(ApiKeysItem);
expect(wrapper.vm.$props.itemData).toEqual({ createdAt: '', id: '', isSelected: false, name: '', secret: '' });
});
});