debian-mirror-gitlab/spec/frontend/milestones/stores/getter_spec.js
2021-01-03 14:25:43 +05:30

15 lines
493 B
JavaScript

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