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
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:
Impact that it would Provide: