Skip to content

Commit

Permalink
fix: Update test references to removed export (#12042)
Browse files Browse the repository at this point in the history
* fix: Update test references to removed export

* Revert updated casing from another PR
  • Loading branch information
cshfang authored Sep 14, 2023
1 parent c3dc9f3 commit c39db56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('runWithAmplifyServerContext', () => {

describe('when amplifyConfig.Auth is defined', () => {
describe('when nextServerContext is null (opt-in unauthenticated role)', () => {
it('should create auth providers with MemoryKeyValueStorage', () => {
it('should create auth providers with sharedInMemoryStorage', () => {
const operation = jest.fn();
runWithAmplifyServerContext({ operation, nextServerContext: null });
expect(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import { AuthError } from '../../../src/errors/AuthError';
import {
GetCredentialsForIdentityInput,
GetCredentialsForIdentityOutput,
MemoryKeyValueStorage,
ResourcesConfig,
getCredentialsForIdentity,
sharedInMemoryStorage,
} from '@aws-amplify/core';

jest.mock('@aws-amplify/core', () => ({
Expand Down Expand Up @@ -73,7 +73,7 @@ describe('Guest Credentials', () => {
beforeEach(() => {
cognitoCredentialsProvider =
new CognitoAWSCredentialsAndIdentityIdProvider(
new DefaultIdentityIdStore(MemoryKeyValueStorage)
new DefaultIdentityIdStore(sharedInMemoryStorage)
);
credentialsForIdentityIdSpy.mockImplementationOnce(
async ({}, params: GetCredentialsForIdentityInput) => {
Expand Down Expand Up @@ -125,7 +125,7 @@ describe('Guest Credentials', () => {
beforeEach(() => {
cognitoCredentialsProvider =
new CognitoAWSCredentialsAndIdentityIdProvider(
new DefaultIdentityIdStore(MemoryKeyValueStorage)
new DefaultIdentityIdStore(sharedInMemoryStorage)
);
credentialsForIdentityIdSpy.mockImplementationOnce(
async ({}, params: GetCredentialsForIdentityInput) => {
Expand Down Expand Up @@ -164,7 +164,7 @@ describe('Primary Credentials', () => {
beforeEach(() => {
cognitoCredentialsProvider =
new CognitoAWSCredentialsAndIdentityIdProvider(
new DefaultIdentityIdStore(MemoryKeyValueStorage)
new DefaultIdentityIdStore(sharedInMemoryStorage)
);
credentialsForIdentityIdSpy.mockImplementation(
async ({}, params: GetCredentialsForIdentityInput) => {
Expand Down Expand Up @@ -245,7 +245,7 @@ describe('Primary Credentials', () => {
beforeEach(() => {
cognitoCredentialsProvider =
new CognitoAWSCredentialsAndIdentityIdProvider(
new DefaultIdentityIdStore(MemoryKeyValueStorage)
new DefaultIdentityIdStore(sharedInMemoryStorage)
);
});
afterEach(() => {
Expand Down

0 comments on commit c39db56

Please sign in to comment.