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

20 lines
529 B
TypeScript
Raw Normal View History

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
import ApiKeysItem from '@/components/apiKeys/ApiKeysItem.vue';
import { ApiKey } from '@/types/apiKeys';
2019-09-09 11:33:39 +01:00
import { mount } from '@vue/test-utils';
describe('ApiKeysItem.vue', (): void => {
it('renders correctly', (): void => {
const wrapper = mount(ApiKeysItem, {
propsData: {
itemData: new ApiKey('', '', new Date(0), ''),
},
});
expect(wrapper).toMatchSnapshot();
});
});