Skip to content

Commit 99a7af3

Browse files
cshfangjimblanc
andauthored
chore: align awsClients directory casing (#12223)
* chore: align awsClients directory casing * Update corresponding unit test folders --------- Co-authored-by: Jim Blanchard <[email protected]>
1 parent c30700e commit 99a7af3

File tree

27 files changed

+20
-20
lines changed

27 files changed

+20
-20
lines changed

packages/auth/__tests__/providers/cognito/credentialsProvider.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jest.mock('@aws-amplify/core', () => ({
2020
getCredentialsForIdentity: jest.fn(),
2121
}));
2222

23-
jest.mock('@aws-amplify/core/lib/AwsClients/CognitoIdentity');
23+
jest.mock('@aws-amplify/core/lib/awsClients/cognitoIdentity');
2424

2525
jest.mock(
2626
'./../../../src/providers/cognito/credentialsProvider/IdentityIdProvider',

packages/auth/__tests__/providers/cognito/identityIdProvider.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { Amplify, Identity, ResourcesConfig } from '@aws-amplify/core';
66
import { DefaultIdentityIdStore } from '../../../src/providers/cognito/credentialsProvider/IdentityIdStore';
77

88
// TODO(V6): import these from top level core/ and not lib/
9-
import * as cogId from '@aws-amplify/core/lib/AwsClients/CognitoIdentity';
9+
import * as cogId from '@aws-amplify/core/lib/awsClients/cognitoIdentity';
1010
import { cognitoIdentityIdProvider } from '../../../src/providers/cognito/credentialsProvider/IdentityIdProvider';
11-
jest.mock('@aws-amplify/core/lib/AwsClients/CognitoIdentity');
11+
jest.mock('@aws-amplify/core/lib/awsClients/cognitoIdentity');
1212
jest.mock('../../../src/providers/cognito/credentialsProvider/IdentityIdStore');
1313

1414
type ArgumentTypes<F extends Function> = F extends (...args: infer A) => any

packages/core/__tests__/AwsClients/CognitoIdentity/getCredentialsForIdentity.test.ts renamed to packages/core/__tests__/awsClients/cognitoIdentity/getCredentialsForIdentity.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
getCredentialsForIdentity,
88
GetCredentialsForIdentityInput,
99
GetCredentialsForIdentityOutput,
10-
} from '../../../src/AwsClients/CognitoIdentity';
10+
} from '../../../src/awsClients/cognitoIdentity';
1111
import {
1212
cognitoIdentityHandlerOptions,
1313
mockCredentials,

packages/core/__tests__/AwsClients/CognitoIdentity/getId.test.ts renamed to packages/core/__tests__/awsClients/cognitoIdentity/getId.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
getId,
88
GetIdInput,
99
GetIdOutput,
10-
} from '../../../src/AwsClients/CognitoIdentity';
10+
} from '../../../src/awsClients/cognitoIdentity';
1111
import {
1212
cognitoIdentityHandlerOptions,
1313
mockIdentityId,

packages/core/__tests__/AwsClients/Pinpoint/getInAppMessages.test.ts renamed to packages/core/__tests__/awsClients/pinpoint/getInAppMessages.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
getInAppMessages,
77
GetInAppMessagesInput,
88
GetInAppMessagesOutput,
9-
} from '../../../src/AwsClients/Pinpoint';
9+
} from '../../../src/awsClients/pinpoint';
1010
import {
1111
mockApplicationId,
1212
mockEndpointId,

packages/core/__tests__/AwsClients/Pinpoint/putEvents.test.ts renamed to packages/core/__tests__/awsClients/pinpoint/putEvents.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
putEvents,
77
PutEventsInput,
88
PutEventsOutput,
9-
} from '../../../src/AwsClients/Pinpoint';
9+
} from '../../../src/awsClients/pinpoint';
1010
import {
1111
mockApplicationId,
1212
mockEventsRequest,

packages/core/__tests__/AwsClients/Pinpoint/updateEndpoint.test.ts renamed to packages/core/__tests__/awsClients/pinpoint/updateEndpoint.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
updateEndpoint,
77
UpdateEndpointInput,
88
UpdateEndpointOutput,
9-
} from '../../../src/AwsClients/Pinpoint';
9+
} from '../../../src/awsClients/pinpoint';
1010
import {
1111
mockApplicationId,
1212
mockEndpointId,

packages/core/__tests__/providers/pinpoint/apis/record.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { v4 } from 'uuid';
2-
import { putEvents as clientPutEvents } from '../../../../src/AwsClients/Pinpoint';
2+
import { putEvents as clientPutEvents } from '../../../../src/awsClients/pinpoint';
33
import { record } from '../../../../src/providers/pinpoint/apis';
44
import { updateEndpoint } from '../../../../src/providers/pinpoint/apis/updateEndpoint';
55
import { getEndpointId } from '../../../../src/providers/pinpoint/utils';
@@ -16,7 +16,7 @@ import {
1616
import { getEventBuffer } from '../../../../src/providers/pinpoint/utils/getEventBuffer';
1717

1818
jest.mock('uuid');
19-
jest.mock('../../../../src/AwsClients/Pinpoint');
19+
jest.mock('../../../../src/awsClients/pinpoint');
2020
jest.mock('../../../../src/providers/pinpoint/utils');
2121
jest.mock('../../../../src/providers/pinpoint/apis/updateEndpoint');
2222
jest.mock('../../../../src/providers/pinpoint/utils/getEventBuffer');

packages/core/__tests__/providers/pinpoint/apis/updateEndpoint.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import { v4 } from 'uuid';
55
import { ClientDevice } from '../../../../src/ClientDevice';
6-
import { updateEndpoint as clientUpdateEndpoint } from '../../../../src/AwsClients/Pinpoint';
6+
import { updateEndpoint as clientUpdateEndpoint } from '../../../../src/awsClients/pinpoint';
77
import {
88
cacheEndpointId,
99
getEndpointId,
@@ -23,7 +23,7 @@ import {
2323
import { getExpectedInput } from './testUtils/getExpectedInput';
2424

2525
jest.mock('uuid');
26-
jest.mock('../../../../src/AwsClients/Pinpoint');
26+
jest.mock('../../../../src/awsClients/pinpoint');
2727
jest.mock('../../../../src/providers/pinpoint/utils');
2828

2929
describe('Pinpoint Provider API: updateEndpoint', () => {

0 commit comments

Comments
 (0)