Skip to content

Commit

Permalink
rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
markkaylor committed May 10, 2022
1 parent 60dfae1 commit 5616903
Showing 1 changed file with 6 additions and 10 deletions.
Expand Up @@ -24,7 +24,7 @@ describe('Build Component Schema', () => {
};
}

const schemaLength = Object.keys(schemas).length;
const schemaNames = Object.keys(schemas);
const [pluginResponseName, apiResponseName] = Object.keys(schemas);
const [pluginResponseValue, apiResponseValue] = Object.values(schemas);

Expand All @@ -41,7 +41,7 @@ describe('Build Component Schema', () => {
},
};

expect(schemaLength).toBe(2);
expect(schemaNames.length).toBe(2);
expect(pluginResponseName).toBe('UsersPermissionsRoleResponse');
expect(apiResponseName).toBe('RestaurantResponse');
expect(pluginResponseValue).toStrictEqual(expectedShape);
Expand Down Expand Up @@ -86,7 +86,6 @@ describe('Build Component Schema', () => {
};
}

const schemaLength = Object.keys(schemas).length;
const schemaNames = Object.keys(schemas);
const pluginListResponseValue = schemas['UsersPermissionsRoleListResponse'];
const apiListResponseValue = schemas['RestaurantListResponse'];
Expand Down Expand Up @@ -119,7 +118,7 @@ describe('Build Component Schema', () => {
},
};

expect(schemaLength).toBe(4);
expect(schemaNames.length).toBe(4);
expect(schemaNames.includes('UsersPermissionsRoleListResponse')).toBe(true);
expect(schemaNames.includes('RestaurantListResponse')).toBe(true);
expect(pluginListResponseValue).toStrictEqual(expectedShape);
Expand Down Expand Up @@ -164,7 +163,6 @@ describe('Build Component Schema', () => {
};
}

const schemaLength = Object.keys(schemas).length;
const schemaNames = Object.keys(schemas);
const pluginListResponseValue = schemas['UsersPermissionsRoleRequest'];
const apiListResponseValue = schemas['RestaurantRequest'];
Expand All @@ -179,7 +177,7 @@ describe('Build Component Schema', () => {
},
};

expect(schemaLength).toBe(4);
expect(schemaNames.length).toBe(4);
expect(schemaNames.includes('UsersPermissionsRoleRequest')).toBe(true);
expect(schemaNames.includes('RestaurantRequest')).toBe(true);
expect(pluginListResponseValue).toStrictEqual(expectedShape);
Expand Down Expand Up @@ -224,7 +222,6 @@ describe('Build Component Schema', () => {
};
}

const schemaLength = Object.keys(schemas).length;
const schemaNames = Object.keys(schemas);
const pluginListResponseValue = schemas['UsersPermissionsRoleLocalizationResponse'];
const apiListResponseValue = schemas['RestaurantLocalizationResponse'];
Expand All @@ -237,7 +234,7 @@ describe('Build Component Schema', () => {
},
};

expect(schemaLength).toBe(4);
expect(schemaNames.length).toBe(4);
expect(schemaNames.includes('UsersPermissionsRoleLocalizationResponse')).toBe(true);
expect(schemaNames.includes('RestaurantLocalizationResponse')).toBe(true);
expect(pluginListResponseValue).toStrictEqual(expectedShape);
Expand Down Expand Up @@ -284,7 +281,6 @@ describe('Build Component Schema', () => {
};
}

const schemaLength = Object.keys(schemas).length;
const schemaNames = Object.keys(schemas);
const pluginListResponseValue = schemas['UsersPermissionsRoleLocalizationRequest'];
const apiListResponseValue = schemas['RestaurantLocalizationRequest'];
Expand All @@ -294,7 +290,7 @@ describe('Build Component Schema', () => {
properties: { test: { type: 'string' } },
};

expect(schemaLength).toBe(8);
expect(schemaNames.length).toBe(8);
expect(schemaNames.includes('UsersPermissionsRoleLocalizationRequest')).toBe(true);
expect(schemaNames.includes('RestaurantLocalizationRequest')).toBe(true);
expect(pluginListResponseValue).toStrictEqual(expectedShape);
Expand Down

0 comments on commit 5616903

Please sign in to comment.