storj/web/storagenode/tests/unit/components/WalletArea.spec.ts
Vitalii 8268933b56 web/storagenode: fix linter
Fixed web linter.

Issue:
https://github.com/storj/storj/issues/5158

Change-Id: Ia63e3e6e7352a99e902c9ed08a4bcfd75059e943
2022-11-04 18:32:26 +00:00

40 lines
1.1 KiB
TypeScript

// Copyright (C) 2021 Storj Labs, Inc.
// See LICENSE for copying information.
import { createLocalVue, shallowMount } from '@vue/test-utils';
import WalletArea from '@/app/components/WalletArea.vue';
const localVue = createLocalVue();
describe('WalletArea', (): void => {
it('renders correctly with no wallet features', (): void => {
const wrapper = shallowMount(WalletArea, {
localVue,
propsData: {
walletAddress: '0x0123456789012345678901234567890123456789',
walletFeatures: [],
label: 'Wallet address',
},
});
expect(wrapper).toMatchSnapshot();
});
it('renders correctly with no wallet features', (): void => {
const wrapper = shallowMount(WalletArea, {
localVue,
propsData: {
walletAddress: '0x0123456789012345678901234567890123456789',
walletFeatures: [ 'zksync' ],
label: 'Wallet address',
},
});
expect(wrapper).toMatchSnapshot();
});
});