Skip to content

Commit

Permalink
renaming .httpStatusCode
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-sheldon committed Jun 7, 2021
1 parent 423be42 commit 812cb43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default class AwsBatchClient {
})
.promise();
let response = res as any;
if (response.$metadata.HTTPStatusCode != 200){
if (response.$metadata.httpStatusCode != 200){
logger.error(response);
throw Error(
`Retrieving source "${sourceId}" content: ${response.$metadata}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('doRetrieval', () => {
submitJobSpy.mockResolvedValueOnce({
jobName: ingestorName,
$metadata: {
HTTPStatusCode: 200
httpStatusCode: 200
}
});
describeJobDefinitionsSpy.mockResolvedValueOnce(mockJobDefinitions);
Expand All @@ -84,7 +84,7 @@ describe('doRetrieval', () => {
});
it('throws when the aws api returns an non-200 from the submit job call', async () => {
describeJobDefinitionsSpy.mockResolvedValueOnce(mockJobDefinitions);
const metadata = {HTTPStatusCode: 400};
const metadata = {httpStatusCode: 400};
submitJobSpy.mockResolvedValueOnce({
$metadata: metadata
});
Expand Down

0 comments on commit 812cb43

Please sign in to comment.