Commit 968090db authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch 'fix-variable-name' into 'master'

Fix variable name in mock data

See merge request gitlab-org/gitlab!82120
parents 1b344b76 5caee4fb
......@@ -25,7 +25,7 @@ import {
updateSecurityTrainingProvidersResponse,
updateSecurityTrainingProvidersErrorResponse,
testProjectPath,
textProviderIds,
testProviderIds,
} from '../mock_data';
Vue.use(VueApollo);
......@@ -71,7 +71,7 @@ describe('TrainingProviderList component', () => {
const findLoader = () => wrapper.findComponent(GlSkeletonLoader);
const findErrorAlert = () => wrapper.findComponent(GlAlert);
const toggleFirstProvider = () => findFirstToggle().vm.$emit('change', textProviderIds[0]);
const toggleFirstProvider = () => findFirstToggle().vm.$emit('change', testProviderIds[0]);
afterEach(() => {
wrapper.destroy();
......@@ -166,7 +166,7 @@ describe('TrainingProviderList component', () => {
mutation: configureSecurityTrainingProvidersMutation,
variables: {
input: {
providerId: textProviderIds[0],
providerId: testProviderIds[0],
isEnabled: true,
isPrimary: false,
projectPath: testProjectPath,
......
export const testProjectPath = 'foo/bar';
export const textProviderIds = [101, 102];
export const testProviderIds = [101, 102];
export const securityTrainingProviders = [
{
id: textProviderIds[0],
id: testProviderIds[0],
name: 'Vendor Name 1',
description: 'Interactive developer security education',
url: 'https://www.example.org/security/training',
......@@ -12,7 +12,7 @@ export const securityTrainingProviders = [
isPrimary: false,
},
{
id: textProviderIds[1],
id: testProviderIds[1],
name: 'Vendor Name 2',
description: 'Security training with guide and learning pathways.',
url: 'https://www.vendornametwo.com/',
......
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