Commit 5caee4fb authored by Samantha Ming's avatar Samantha Ming

Fix variable name in mock data

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