storj/web/multinode/tests/unit/components/common/NodeOptions.spec.ts
Egon Elbre 84539f5798 web/: disallow warnings and errors in tests
* 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
2021-09-07 13:43:26 +00:00

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();
});
});