Wrap import project mutation names in template strings

This commit is contained in:
Winnie Hellmann 2019-04-08 20:07:20 +02:00
parent 44d3590e36
commit 84792c29ef
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import * as types from '~/import_projects/store/mutation_types';
import mutations from '~/import_projects/store/mutations';
describe('import_projects store mutations', () => {
describe(types.RECEIVE_IMPORT_SUCCESS, () => {
describe(`${types.RECEIVE_IMPORT_SUCCESS}`, () => {
it('removes repoId from reposBeingImported and providerRepos, adds to importedProjects', () => {
const repoId = 1;
const state = {
@ -20,7 +20,7 @@ describe('import_projects store mutations', () => {
});
});
describe(types.RECEIVE_JOBS_SUCCESS, () => {
describe(`${types.RECEIVE_JOBS_SUCCESS}`, () => {
it('updates importStatus of existing importedProjects', () => {
const repoId = 1;
const state = { importedProjects: [{ id: repoId, importStatus: 'started' }] };