storj/web/satellite/tests/unit/apiKeys/ApiKeysItem.spec.ts
2019-09-09 13:33:39 +03:00

21 lines
588 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', () => {
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: '' });
});
});