Skip to content

test : add unit tests for getAccountToken function #684

@tmdeveloper007

Description

@tmdeveloper007

Summary of What Needs to be Done:
Add unit tests for the getAccountToken function in src/lib/github-accounts.ts. Tests must use vitest framework and import actual source code.

Changes that Need to be Made:

  • Create test using vitest describe/it/expect
  • Import getAccountToken from src/lib/github-accounts.ts
  • Test returns token when account exists
  • Test returns null when account not found
  • Test returns null when decryption fails

Impact that it would Provide:

  • Ensures account token retrieval works correctly
  • Validates error handling for missing accounts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions