Skip to content

Commit

Permalink
test: update interface name in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Sep 13, 2023
1 parent d944ade commit 90fb863
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/storage/__tests__/providers/s3/apis/copy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// SPDX-License-Identifier: Apache-2.0

import { Credentials } from '@aws-sdk/types';
import { Amplify, StorageAccessLevel } from '@aws-amplify/core';
import { Amplify } from '@aws-amplify/core';
import { copyObject } from '../../../../src/providers/s3/utils/client';
import { copy } from '../../../../src/providers/s3/apis';
import {
StorageCopySourceOptions,
StorageCopyDestinationOptions,
} from '../../../../src/types';
CopySourceOptions,
CopyDestinationOptions,
} from '../../../../src/providers/s3/types';

jest.mock('../../../../src/providers/s3/utils/client');
jest.mock('@aws-amplify/core', () => ({
Expand Down Expand Up @@ -153,11 +153,11 @@ describe('copy API', () => {
expect(
await copy({
source: {
...(source as StorageCopySourceOptions),
...(source as CopySourceOptions),
key: sourceKey,
},
destination: {
...(destination as StorageCopyDestinationOptions),
...(destination as CopyDestinationOptions),
key: destinationKey,
},
})
Expand Down

0 comments on commit 90fb863

Please sign in to comment.