Skip to content

Commit

Permalink
Fix existing unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Borzenko committed Aug 2, 2023
1 parent 2414cd8 commit 5e75986
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/app/api/dataset.api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,12 @@ describe("DatasetApi", () => {
});

it("should commit event", () => {
const mockDatasetId = "mockId";
const mockEvent = "mock event";
service
.commitEvent({
datasetId: "mockId",
event: "mock event",
datasetId: mockDatasetId,
event: mockEvent,
})
.subscribe(
(res: CommitEventToDatasetMutation | null | undefined) => {
Expand All @@ -203,8 +205,8 @@ describe("DatasetApi", () => {
);

const op = controller.expectOne(CommitEventToDatasetDocument);
expect(op.operation.variables.accountName).toEqual(TEST_USER_NAME);
expect(op.operation.variables.datasetName).toEqual(TEST_DATASET_NAME);
expect(op.operation.variables.datasetId).toEqual(mockDatasetId);
expect(op.operation.variables.event).toEqual(mockEvent);
op.flush({
data: mockCommitEventResponse,
});
Expand Down

0 comments on commit 5e75986

Please sign in to comment.