20 lines
587 B
TypeScript
20 lines
587 B
TypeScript
|
// 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: '' });
|
||
|
});
|
||
|
});
|