storj/web/satellite/tests/unit/apiKeys/ApiKeysItem.spec.ts

20 lines
587 B
TypeScript
Raw Normal View History

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