Commit 84792c29 authored by Winnie Hellmann's avatar Winnie Hellmann

Wrap import project mutation names in template strings

parent 44d3590e
...@@ -2,7 +2,7 @@ import * as types from '~/import_projects/store/mutation_types'; ...@@ -2,7 +2,7 @@ import * as types from '~/import_projects/store/mutation_types';
import mutations from '~/import_projects/store/mutations'; import mutations from '~/import_projects/store/mutations';
describe('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', () => { it('removes repoId from reposBeingImported and providerRepos, adds to importedProjects', () => {
const repoId = 1; const repoId = 1;
const state = { const state = {
...@@ -20,7 +20,7 @@ describe('import_projects store mutations', () => { ...@@ -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', () => { it('updates importStatus of existing importedProjects', () => {
const repoId = 1; const repoId = 1;
const state = { importedProjects: [{ id: repoId, importStatus: 'started' }] }; const state = { importedProjects: [{ id: repoId, importStatus: 'started' }] };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment