Skip to content

Commit

Permalink
fix tsc error
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofzuraw committed Jan 20, 2025
1 parent a311857 commit f202748
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/segment/src/modules/db/dynamo-config-repository.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe("DynamoConfigRepository", () => {
Item: mockedConfigEntry,
});

const repository = new DynamoConfigRepository({ segmentConfigEntity });
const repository = new DynamoConfigRepository();

const result = await repository.getAppConfigEntry({
saleorApiUrl: "saleorApiUrl",
Expand All @@ -55,7 +55,7 @@ describe("DynamoConfigRepository", () => {
it("should handle errors when getting AppConfig from DynamoDB", async () => {
mockDocumentClient.on(GetCommand, {}).rejectsOnce("Exception");

const repository = new DynamoConfigRepository({ segmentConfigEntity });
const repository = new DynamoConfigRepository();

const result = await repository.getAppConfigEntry({
saleorApiUrl: "saleorApiUrl",
Expand All @@ -70,7 +70,7 @@ describe("DynamoConfigRepository", () => {
it("should return null if AppConfig entry does not exist in DynamoDB", async () => {
mockDocumentClient.on(GetCommand, {}).resolvesOnce({});

const repository = new DynamoConfigRepository({ segmentConfigEntity });
const repository = new DynamoConfigRepository();

const result = await repository.getAppConfigEntry({
saleorApiUrl: "saleorApiUrl",
Expand All @@ -86,7 +86,7 @@ describe("DynamoConfigRepository", () => {
it("should successfully set AppConfig entry in DynamoDB", async () => {
mockDocumentClient.on(PutCommand, {}).resolvesOnce({});

const repository = new DynamoConfigRepository({ segmentConfigEntity });
const repository = new DynamoConfigRepository();

const result = await repository.setAppConfigEntry({
saleorApiUrl: "saleorApiUrl",
Expand All @@ -105,7 +105,7 @@ describe("DynamoConfigRepository", () => {
it("should handle errors when setting AppConfig entry in DynamoDB", async () => {
mockDocumentClient.on(PutCommand, {}).rejectsOnce("Exception");

const repository = new DynamoConfigRepository({ segmentConfigEntity });
const repository = new DynamoConfigRepository();

const result = await repository.setAppConfigEntry({
saleorApiUrl: "saleorApiUrl",
Expand Down

0 comments on commit f202748

Please sign in to comment.