Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AleDore committed Mar 1, 2024
1 parent 8baacc9 commit d2a5e9b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/output/__tests__/factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {
indexerDeduplicationStrategy, tableStorageDeduplicationStrategy
} from "../service";

import * as TU from "../../utils/tableStorage";
import { TableClient } from "@azure/data-tables";

describe("getDeduplicationStrategy", () => {
afterEach(() => {
jest.clearAllMocks();
Expand All @@ -28,9 +31,11 @@ describe("getDeduplicationStrategy", () => {
});

it("should return tablestorage deduplication strategy", () => {
jest.spyOn(TU, "getTableClient").mockImplementation(() => () => ({}) as TableClient);
const strategyType = DeduplicationStrategyType.TableStorage;
const strategy = getDeduplicationStrategy({
type: strategyType,
tableName: "tableName" as NonEmptyString,
storageConnectionString: "foo" as NonEmptyString
});
expect(strategy).toBeDefined();
Expand Down

0 comments on commit d2a5e9b

Please sign in to comment.