84539f5798
* all: fix missing Vue.use(Router) * multinode: having same state and module names is not allowed * multinode: simplify store definition * storagenode: add or fix any annotations Change-Id: If8a63ae46049fc77fc6cd7a7ad912d4ad74d23ac
24 lines
632 B
TypeScript
24 lines
632 B
TypeScript
// Copyright (C) 2021 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
import NodeOptions from '@/app/components/common/NodeOptions.vue';
|
|
|
|
import { shallowMount } from '@vue/test-utils';
|
|
|
|
describe('NodeOptions', (): void => {
|
|
it('renders correctly', async(): Promise<void> => {
|
|
const wrapper = shallowMount(NodeOptions, {
|
|
propsData: { id: 'id' },
|
|
directives: {
|
|
clickOutside: {},
|
|
},
|
|
});
|
|
|
|
expect(wrapper).toMatchSnapshot();
|
|
|
|
await wrapper.find('.options-button').trigger('click');
|
|
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|