Skip to content

Commit

Permalink
trying to pass duplicated code check
Browse files Browse the repository at this point in the history
  • Loading branch information
ssh51117 committed Apr 12, 2024
1 parent 388203f commit 71ff79d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { beforeEach, expect, it, vi} from "vitest";
import { DynamoDBClient, PutItemCommand} from '@aws-sdk/client-dynamodb';
import { mockClient } from 'aws-sdk-client-mock';
import { handler } from '../create_trainspace';

//note: event declaration errors are supressed becasue we only need
// certain parts of them for that specific function
//mocks parseJwt so that the call just returns whatever the input is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { beforeEach, expect, it, vi} from "vitest";
import { DynamoDBClient, QueryCommand, BatchExecuteStatementCommand } from '@aws-sdk/client-dynamodb';
import { mockClient } from 'aws-sdk-client-mock';
import { handler } from '../delete_all_trainspace';
//note: event declaration errors are supressed becasue we only need
// certain parts of them for that specific function

//mocks parseJwt so that the call just returns whatever the input is
vi.mock('@dlp-sst-app/core/src/parseJwt', async () => {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { beforeEach, expect, it, vi} from "vitest";
import { DynamoDBClient, DeleteItemCommand } from '@aws-sdk/client-dynamodb';
import { mockClient } from 'aws-sdk-client-mock';
import { handler } from '../delete_trainspace';
//note: event declaration errors are supressed becasue we only need
// certain parts of them for that specific function

//mocks parseJwt so that the call just returns whatever the input is
vi.mock('@dlp-sst-app/core/src/parseJwt', async () => {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { beforeEach, expect, it, vi} from "vitest";
import { mockClient } from 'aws-sdk-client-mock';
import { DynamoDBClient, QueryCommand } from '@aws-sdk/client-dynamodb';
import { handler } from '../get_all_trainspace';
//note: event declaration errors are supressed becasue we only need
// certain parts of them for that specific function

//mocks parseJwt so that the call just returns whatever the input is
vi.mock('@dlp-sst-app/core/src/parseJwt', async () => {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { beforeEach, expect, it, vi} from "vitest";
import { DynamoDBClient, PutItemCommand } from '@aws-sdk/client-dynamodb';
import { mockClient } from 'aws-sdk-client-mock';
import { handler } from '../create_user';

//note: event declaration errors are supressed becasue we only need
// certain parts of them for that specific function
//mocks parseJwt so that the call just returns whatever the input is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { beforeEach, expect, it, vi} from "vitest";
import { DynamoDBClient, DeleteItemCommand } from '@aws-sdk/client-dynamodb';
import { mockClient } from 'aws-sdk-client-mock';
import { handler } from '../delete_user';
//note: event declaration errors are supressed becasue we only need
// certain parts of them for that specific function

//mocks parseJwt so that the call just returns whatever the input is
vi.mock('@dlp-sst-app/core/src/parseJwt', async () => {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { beforeEach, expect, it, vi} from "vitest";
import { DynamoDBClient, GetItemCommand } from '@aws-sdk/client-dynamodb';
import { mockClient } from 'aws-sdk-client-mock';
import { handler } from '../get_user';
//note: event declaration errors are supressed becasue we only need
// certain parts of them for that specific function

//mocks parseJwt so that the call just returns whatever the input is
vi.mock('@dlp-sst-app/core/src/parseJwt', async () => {
return {
Expand Down

0 comments on commit 71ff79d

Please sign in to comment.