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

21 lines
588 B
TypeScript
Raw Normal View History

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
import ApiKeysItem from '@/components/apiKeys/ApiKeysItem.vue';
2019-09-09 11:33:39 +01:00
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: '' });
});
});