debian-mirror-gitlab/spec/frontend/milestones/stores/getter_spec.js

16 lines
493 B
JavaScript
Raw Normal View History

2021-01-03 14:25:43 +05:30
import * as getters from '~/milestones/stores/getters';
describe('Milestone comboxbox Vuex store getters', () => {
describe('isLoading', () => {
it.each`
requestCount | isLoading
${2} | ${true}
${1} | ${true}
${0} | ${false}
${-1} | ${false}
`('returns true when at least one request is in progress', ({ requestCount, isLoading }) => {
expect(getters.isLoading({ requestCount })).toBe(isLoading);
});
});
});