Skip to content

Commit fbebceb

Browse files
committed
test: Add Vitest for testing and implement hmacSHA256Base64 tests
- Added Vitest as a development dependency for testing. - Created a new test file for hmacSHA256Base64 utility function with two test cases: - Validates the base64 signature for known input. - Ensures different signatures are returned for different messages.
1 parent dd757a1 commit fbebceb

4 files changed

Lines changed: 1394 additions & 125 deletions

File tree

.github/workflows/check.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,22 @@ jobs:
6161

6262
- name: Prettier format check
6363
run: npm run format:check
64+
65+
test:
66+
runs-on: ubuntu-latest
67+
68+
steps:
69+
- name: Checkout
70+
uses: actions/checkout@v6
71+
72+
- name: Setup Node.js
73+
uses: actions/setup-node@v6
74+
with:
75+
node-version: 22
76+
cache: npm
77+
78+
- name: Install dependencies
79+
run: npm ci
80+
81+
- name: Run unit tests
82+
run: npm run test:run

0 commit comments

Comments
 (0)