storj/web/satellite/tests/unit/common/VerticalArrows.spec.ts
Vitalii c5bca894fd web/satellite: fix linter
Added imports linting, trailing commas, trailing semicolons, single quotes and spaces between curly braces.

Change-Id: I5de5d3eea48753dfe2737983b230bafaffe898c8
2022-09-09 11:02:04 +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();
});
});