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