Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-import-method=copy
1 change: 1 addition & 0 deletions extension/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-import-method=copy
133 changes: 80 additions & 53 deletions extension/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 1 addition & 11 deletions extension/src/constants/api.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { API, ERROR_MESSAGES, GRAPHQL } from "./api";
import { API, ERROR_MESSAGES } from "./api";

describe("API Constants", () => {
describe("API", () => {
it("should have valid URL formats", () => {
const urlPattern = /^https?:\/\/.+/;
expect(API.BASE_URL).toMatch(urlPattern);
expect(API.GITHUB.GRAPHQL_URL).toMatch(urlPattern);
expect(API.GITHUB.OAUTH_URL).toMatch(urlPattern);
});

Expand All @@ -22,14 +21,6 @@ describe("API Constants", () => {
it("should have correct structure", () => {
expect(API.BASE_URL).toBeDefined();
expect(API.GITHUB).toBeDefined();
expect(API.GITHUB.GRAPHQL_URL).toBeDefined();
});
});

describe("GRAPHQL", () => {
it("should have valid field names", () => {
expect(GRAPHQL.ISSUE_ALIAS_PREFIX).toBe("issue");
expect(GRAPHQL.STATUS_FIELD_NAME).toBe("Status");
});
});

Expand All @@ -40,7 +31,6 @@ describe("API Constants", () => {
});

it("should have correct structure", () => {
// Verify the error message exists and is a string
expect(typeof ERROR_MESSAGES.AUTH_REQUIRED).toBe("string");
expect(ERROR_MESSAGES.AUTH_REQUIRED.length).toBeGreaterThan(0);
});
Expand Down
Loading
Loading