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