Skip to content

Commit

Permalink
fix indentation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vishvamsinh28 committed Dec 9, 2024
1 parent 5d23088 commit fca4dcc
Showing 1 changed file with 147 additions and 147 deletions.
294 changes: 147 additions & 147 deletions tests/fixtures/combineToolsData.js
Original file line number Diff line number Diff line change
@@ -1,212 +1,212 @@
const expectedDataT1 = {
languages: [
{
name: 'JavaScript',
color: 'bg-[#57f281]',
borderColor: 'border-[#37f069]'
},
{
name: 'Python',
color: 'bg-[#3572A5]',
borderColor: 'border-[#3572A5]'
}
],
technologies: [
{
name: 'Node.js',
color: 'bg-[#61d0f2]',
borderColor: 'border-[#40ccf7]'
},
{
name: 'Flask',
color: 'bg-[#000000]',
borderColor: 'border-[#FFFFFF]'
}
]
languages: [
{
name: 'JavaScript',
color: 'bg-[#57f281]',
borderColor: 'border-[#37f069]',
},
{
name: 'Python',
color: 'bg-[#3572A5]',
borderColor: 'border-[#3572A5]',
},
],
technologies: [
{
name: 'Node.js',
color: 'bg-[#61d0f2]',
borderColor: 'border-[#40ccf7]',
},
{
name: 'Flask',
color: 'bg-[#000000]',
borderColor: 'border-[#FFFFFF]',
},
],
};

const manualToolsWithMissingData = [
{
title: 'Tool C',
filters: {},
links: { repoUrl: 'https://github.com/asyncapi/tool-c' }
}
{
title: 'Tool C',
filters: {},
links: { repoUrl: 'https://github.com/asyncapi/tool-c' },
},
];

const manualToolsToSort = {
category1: {
description: 'Sample Category',
toolsList: [
{
title: 'Tool Z',
filters: { language: 'JavaScript' },
links: { repoUrl: 'https://github.com/asyncapi/tool-z' }
},
{
title: 'Tool A',
filters: { language: 'Python' },
links: { repoUrl: 'https://github.com/asyncapi/tool-a' }
}
]
}
category1: {
description: 'Sample Category',
toolsList: [
{
title: 'Tool Z',
filters: { language: 'JavaScript' },
links: { repoUrl: 'https://github.com/asyncapi/tool-z' },
},
{
title: 'Tool A',
filters: { language: 'Python' },
links: { repoUrl: 'https://github.com/asyncapi/tool-a' },
},
],
},
};

const toolWithMultipleLanguages = {
title: 'Multi-Language Tool',
filters: {
language: ['JavaScript', 'Python', 'NewLanguage'],
technology: ['Node.js']
},
links: { repoUrl: 'https://github.com/example/multi-language-tool' }
title: 'Multi-Language Tool',
filters: {
language: ['JavaScript', 'Python', 'NewLanguage'],
technology: ['Node.js'],
},
links: { repoUrl: 'https://github.com/example/multi-language-tool' },
};

const automatedToolsT5 = {
'category1': {
description: 'Category 1 Description',
toolsList: [toolWithMultipleLanguages]
}
category1: {
description: 'Category 1 Description',
toolsList: [toolWithMultipleLanguages],
},
};

const invalidToolT4 = { title: 'Invalid Tool' };

const automatedToolsT4 = {
'category1': {
description: 'Category 1 Description',
toolsList: []
}
category1: {
description: 'Category 1 Description',
toolsList: [],
},
};
const manualToolsT4 = {
'category1': {
toolsList: [invalidToolT4]
}
category1: {
toolsList: [invalidToolT4],
},
};

const toolWithNewTagsT6 = {
title: 'New Tags Tool',
filters: {
language: 'NewLanguage',
technology: ['NewTechnology']
},
links: { repoUrl: 'https://github.com/example/new-tags-tool' }
title: 'New Tags Tool',
filters: {
language: 'NewLanguage',
technology: ['NewTechnology'],
},
links: { repoUrl: 'https://github.com/example/new-tags-tool' },
};

const automatedToolsT6 = {
'category1': {
description: 'Category 1 Description',
toolsList: [toolWithNewTagsT6]
}
category1: {
description: 'Category 1 Description',
toolsList: [toolWithNewTagsT6],
},
};

const toolWithNewLanguageT7 = {
title: 'New Language Tool',
filters: {
language: 'Go',
technology: ['Node.js']
},
links: { repoUrl: 'https://github.com/example/new-language-tool' }
title: 'New Language Tool',
filters: {
language: 'Go',
technology: ['Node.js'],
},
links: { repoUrl: 'https://github.com/example/new-language-tool' },
};

const automatedToolsT7 = {
'category1': {
description: 'Category 1 Description',
toolsList: [toolWithNewLanguageT7]
}
category1: {
description: 'Category 1 Description',
toolsList: [toolWithNewLanguageT7],
},
};

const validToolT8 = {
title: 'Valid Tool',
filters: {
language: 'JavaScript',
technology: ['Node.js']
},
links: { repoUrl: 'https://github.com/asyncapi/valid-tool' }
title: 'Valid Tool',
filters: {
language: 'JavaScript',
technology: ['Node.js'],
},
links: { repoUrl: 'https://github.com/asyncapi/valid-tool' },
};

const automatedToolsT8 = {
category1: {
description: 'Category 1 Description',
toolsList: []
}
category1: {
description: 'Category 1 Description',
toolsList: [],
},
};

const manualToolsT8 = {
category1: {
toolsList: [validToolT8]
}
category1: {
toolsList: [validToolT8],
},
};

const toolWithoutRepoUrlT9 = {
title: 'Tool Without Repo',
filters: {
language: 'Python',
technology: ['Flask']
},
links: {}
title: 'Tool Without Repo',
filters: {
language: 'Python',
technology: ['Flask'],
},
links: {},
};

const automatedToolsT9 = {
category1: {
description: 'Category 1 Description',
toolsList: []
}
category1: {
description: 'Category 1 Description',
toolsList: [],
},
};

const manualToolsT9 = {
category1: {
toolsList: [toolWithoutRepoUrlT9]
}
category1: {
toolsList: [toolWithoutRepoUrlT9],
},
};

const invalidAutomatedToolsT10 = {
invalidCategory: {
description: 'Invalid Category Description',
toolsList: []
}
invalidCategory: {
description: 'Invalid Category Description',
toolsList: [],
},
};

const manualToolsWithInvalidURLT11 = {
category1: {
toolsList: [
{
title: 'Tool with Invalid URL',
filters: { language: 'JavaScript' },
links: { repoUrl: 'invalid-url' }
}
]
}
category1: {
toolsList: [
{
title: 'Tool with Invalid URL',
filters: { language: 'JavaScript' },
links: { repoUrl: 'invalid-url' },
},
],
},
};

const circularTool = {
title: 'Circular Tool',
filters: {
language: 'JavaScript',
technology: ['Node.js']
},
links: { repoUrl: 'https://github.com/asyncapi/circular-tool' }
title: 'Circular Tool',
filters: {
language: 'JavaScript',
technology: ['Node.js'],
},
links: { repoUrl: 'https://github.com/asyncapi/circular-tool' },
};

const automatedToolsT12 = {
category1: {
description: 'Category 1',
toolsList: [circularTool]
}
category1: {
description: 'Category 1',
toolsList: [circularTool],
},
};

module.exports = {
expectedDataT1,
manualToolsWithMissingData,
manualToolsToSort,
automatedToolsT5,
automatedToolsT4,
manualToolsT4,
automatedToolsT6,
automatedToolsT7,
automatedToolsT8,
manualToolsT8,
automatedToolsT9,
manualToolsT9,
circularTool,
automatedToolsT12,
invalidAutomatedToolsT10,
manualToolsWithInvalidURLT11
}
expectedDataT1,
manualToolsWithMissingData,
manualToolsToSort,
automatedToolsT5,
automatedToolsT4,
manualToolsT4,
automatedToolsT6,
automatedToolsT7,
automatedToolsT8,
manualToolsT8,
automatedToolsT9,
manualToolsT9,
circularTool,
automatedToolsT12,
invalidAutomatedToolsT10,
manualToolsWithInvalidURLT11,
};

0 comments on commit fca4dcc

Please sign in to comment.