Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: (Geo) Kebab case to Camel case config props #12921

Closed
Closed
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/src/I18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class I18n {
* @static
* @method
* Add vocabularies for one language
* @param {String} langurage - Language of the dictionary
* @param {String} language - Language of the dictionary
* @param {Object} vocabularies - Object that has key-value as dictionary entry
*/
static putVocabulariesForLanguage(
Expand Down
8 changes: 4 additions & 4 deletions packages/geo/__tests__/Geo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ describe('Geo', () => {
const input = spyon.mock.calls[0][0].input;
expect(input).toEqual({
Text: testString,
IndexName: awsConfig.geo.amazon_location_service.search_indices.default,
IndexName: awsConfig.geo.amazon_location_service.searchIndices.default,
});
});

Expand Down Expand Up @@ -368,7 +368,7 @@ describe('Geo', () => {
const input = spyon.mock.calls[0][0].input;
expect(input).toEqual({
PlaceId: testPlaceId,
IndexName: awsConfig.geo.amazon_location_service.search_indices.default,
IndexName: awsConfig.geo.amazon_location_service.searchIndices.default,
});
});

Expand Down Expand Up @@ -414,7 +414,7 @@ describe('Geo', () => {
const input = spyon.mock.calls[0][0].input;
expect(input).toEqual({
Text: testString,
IndexName: awsConfig.geo.amazon_location_service.search_indices.default,
IndexName: awsConfig.geo.amazon_location_service.searchIndices.default,
});
});

Expand Down Expand Up @@ -530,7 +530,7 @@ describe('Geo', () => {
const input = spyon.mock.calls[0][0].input;
expect(input).toEqual({
Position: testCoordinates,
IndexName: awsConfig.geo.amazon_location_service.search_indices.default,
IndexName: awsConfig.geo.amazon_location_service.searchIndices.default,
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ describe('AmazonLocationServiceProvider', () => {
const input = spyon.mock.calls[0][0].input;
expect(input).toEqual({
Text: testString,
IndexName: awsConfig.geo.amazon_location_service.search_indices.default,
IndexName: awsConfig.geo.amazon_location_service.searchIndices.default,
});
});

Expand Down Expand Up @@ -367,7 +367,7 @@ describe('AmazonLocationServiceProvider', () => {
const input = spyon.mock.calls[0][0].input;
expect(input).toEqual({
Text: testString,
IndexName: awsConfig.geo.amazon_location_service.search_indices.default,
IndexName: awsConfig.geo.amazon_location_service.searchIndices.default,
});
});

Expand Down Expand Up @@ -527,7 +527,7 @@ describe('AmazonLocationServiceProvider', () => {
const input = spyon.mock.calls[0][0].input;
expect(input).toEqual({
PlaceId: testPlaceId,
IndexName: awsConfig.geo.amazon_location_service.search_indices.default,
IndexName: awsConfig.geo.amazon_location_service.searchIndices.default,
});
});

Expand Down Expand Up @@ -609,7 +609,7 @@ describe('AmazonLocationServiceProvider', () => {
const input = spyon.mock.calls[0][0].input;
expect(input).toEqual({
Position: testCoordinates,
IndexName: awsConfig.geo.amazon_location_service.search_indices.default,
IndexName: awsConfig.geo.amazon_location_service.searchIndices.default,
});
});

Expand Down
2 changes: 1 addition & 1 deletion packages/geo/__tests__/testData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const awsConfig = {
},
default: 'geoJsExampleMap1',
},
search_indices: {
searchIndices: {
nadetastic marked this conversation as resolved.
Show resolved Hide resolved
items: ['geoJSSearchExample'],
default: 'geoJSSearchExample',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class AmazonLocationServiceProvider implements GeoProvider {
*/
let locationServiceInput: SearchPlaceIndexForTextCommandInput = {
Text: text,
IndexName: this._config.search_indices.default,
IndexName: this._config.searchIndices.default,
};

/**
Expand Down Expand Up @@ -219,7 +219,7 @@ export class AmazonLocationServiceProvider implements GeoProvider {
*/
let locationServiceInput: SearchPlaceIndexForSuggestionsCommandInput = {
Text: text,
IndexName: this._config.search_indices.default,
IndexName: this._config.searchIndices.default,
};

/**
Expand Down Expand Up @@ -288,8 +288,7 @@ export class AmazonLocationServiceProvider implements GeoProvider {

const searchByPlaceIdInput: GetPlaceCommandInput = {
PlaceId: placeId,
IndexName:
options?.searchIndexName || this._config.search_indices.default,
IndexName: options?.searchIndexName || this._config.searchIndices.default,
};
const command = new GetPlaceCommand(searchByPlaceIdInput);

Expand Down Expand Up @@ -328,7 +327,7 @@ export class AmazonLocationServiceProvider implements GeoProvider {

const locationServiceInput: SearchPlaceIndexForPositionCommandInput = {
Position: coordinates,
IndexName: this._config.search_indices.default,
IndexName: this._config.searchIndices.default,
};

if (options) {
Expand Down
Loading