storj/web/satellite/tests/unit/ignore/common/VerticalArrows.spec.ts
NickolaiYurchenko 8d30b58a8c web/satellite: VInfo, VerticalArrows, VDateRangePicket migrated to use composition api
related tests moved to ignored folder;

Change-Id: Ic76fe5f6da8088484ddcd2956bb6bb6c0d5d6223
2022-12-15 17:30:46 +00:00

44 lines
1.2 KiB
TypeScript

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
import { mount } from '@vue/test-utils';
import { SortingDirectionEnum } from '@/types/sortingArrows';
import VerticalArrows from '@/components/common/VerticalArrows.vue';
describe('VerticalArrows.vue', () => {
it('should render with bottom arrow highlighted', function () {
const wrapper = mount(VerticalArrows, {
propsData: {
isActive: true,
direction: SortingDirectionEnum.BOTTOM,
},
});
expect(wrapper).toMatchSnapshot();
});
it('should render without any highlighted arrows', function () {
const wrapper = mount(VerticalArrows, {
propsData: {
isActive: false,
direction: SortingDirectionEnum.BOTTOM,
},
});
expect(wrapper).toMatchSnapshot();
});
it('should render with top arrow highlighted', function () {
const wrapper = mount(VerticalArrows, {
propsData: {
isActive: true,
direction: SortingDirectionEnum.TOP,
},
});
expect(wrapper).toMatchSnapshot();
});
});