Skip to content

Commit

Permalink
remove new line
Browse files Browse the repository at this point in the history
  • Loading branch information
vishvamsinh28 committed Dec 9, 2024
1 parent 40dcc54 commit 5d23088
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/tools/combine-tools.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,13 @@ describe('combineTools function', () => {
});

it('should handle tools with missing language or technology', async () => {

await combineTools({}, manualToolsWithMissingData, toolsPath, tagsPath);

const combinedTools = readJSON(toolsPath);
expect(combinedTools).toHaveProperty('category1');
});

it('should sort tools alphabetically by title', async () => {

await combineTools(manualToolsToSort, {}, toolsPath, tagsPath);

const combinedTools = readJSON(toolsPath);
Expand All @@ -111,7 +109,6 @@ describe('combineTools function', () => {
});

it('should log validation errors to console.error', async () => {

await combineTools(automatedToolsT4, manualToolsT4, toolsPath, tagsPath);

const errorCalls = console.error.mock.calls;
Expand All @@ -126,7 +123,6 @@ describe('combineTools function', () => {
});

it('should handle tools with multiple languages, including new ones', async () => {

await combineTools(automatedToolsT5, {}, toolsPath, tagsPath);

const combinedTools = readJSON(toolsPath);
Expand All @@ -142,7 +138,6 @@ describe('combineTools function', () => {
});

it('should add a new language and technology when not found in the existing lists', async () => {

await combineTools(automatedToolsT6, {}, toolsPath, tagsPath);

const combinedTools = readJSON(toolsPath);
Expand All @@ -168,7 +163,6 @@ describe('combineTools function', () => {
});

it('should add a new language when it is not found in the existing languages list', async () => {

await combineTools(automatedToolsT7, {}, toolsPath, tagsPath);

const combinedTools = readJSON(toolsPath);
Expand All @@ -186,10 +180,8 @@ describe('combineTools function', () => {
});

it('should handle valid tool objects', async () => {

await combineTools(automatedToolsT8, manualToolsT8, toolsPath, tagsPath);


const tagsData = readJSON(tagsPath);
expect(tagsData.languages).toContainEqual({
name: 'JavaScript',
Expand All @@ -204,7 +196,6 @@ describe('combineTools function', () => {
});

it('should handle tool objects without repoUrl', async () => {

await combineTools(automatedToolsT9, manualToolsT9, toolsPath, tagsPath);

const combinedTools = readJSON(toolsPath);
Expand Down

0 comments on commit 5d23088

Please sign in to comment.