Skip to content

Commit

Permalink
Migrate to Lens v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoginth committed Dec 6, 2024
1 parent bf9e61f commit aef7516
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
1 change: 1 addition & 0 deletions packages/helpers/getAccountAttribute.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { type MetadataAttribute, MetadataAttributeType } from "@hey/indexer";
import { describe, expect, test } from "vitest";
import getAccountAttribute from "./getAccountAttribute";

Expand Down
14 changes: 1 addition & 13 deletions packages/helpers/postHelpers.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test } from "vitest";
import { isCommentPost, isRepost } from "./postHelpers";
import { isRepost } from "./postHelpers";

describe("postHelpers", () => {
describe("isRepost", () => {
Expand All @@ -18,16 +18,4 @@ describe("postHelpers", () => {
expect(isRepost(post)).toBe(false);
});
});

describe("isCommentPost", () => {
test("should return true for Comment post", () => {
const post: any = { __typename: "Comment" };
expect(isCommentPost(post)).toBe(true);
});

test("should return false for non-Comment post", () => {
const post: any = { __typename: "Article" };
expect(isCommentPost(post)).toBe(false);
});
});
});

0 comments on commit aef7516

Please sign in to comment.