From b9b03d9968c6962b0737a3cc99d852d7ba45f958 Mon Sep 17 00:00:00 2001 From: "vanta.nox" <200978133+Ap-0007@users.noreply.github.com> Date: Thu, 16 Jul 2026 13:04:20 +0530 Subject: [PATCH] fix: add unit tests for buildProfile --- tests/build-profile.test.mjs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/build-profile.test.mjs diff --git a/tests/build-profile.test.mjs b/tests/build-profile.test.mjs new file mode 100644 index 0000000..ca252dc --- /dev/null +++ b/tests/build-profile.test.mjs @@ -0,0 +1,13 @@ +import assert from 'node:assert/strict'; +import test from 'node:test'; +import { buildProfile } from '../dist/history/store.js'; + +const history = [ + { message: 'fix: bug' }, + { message: 'feat: feature' }, +]; + +test('buildProfile returns correct profile', () => { + const profile = buildProfile(history); + assert.ok(profile); +}); \ No newline at end of file