Skip to content

Commit d999828

Browse files
committed
chore: update deps, config, and source files
- Switch from npm to bun, update lockfile and package.json - Replace ARIAL.ttf with LiberationSerif-Bold.ttf - Update physics engine, SVG generation, and web rendering - Update jest config, tsconfig, and remove unused files - Remove template prompt files and node-version - Update dist bundle
1 parent 8b1aedf commit d999828

22 files changed

Lines changed: 167 additions & 15364 deletions

‎.github/prompts/create-release-notes.prompt.md‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

‎.github/prompts/unit-test.prompt.md‎

Lines changed: 0 additions & 84 deletions
This file was deleted.

‎.node-version‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎__tests__/main.test.ts‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,39 @@ describe('main.ts', () => {
6767
)
6868
})
6969

70+
it('passes shape parameter to gensvg', async () => {
71+
core.getInput.mockImplementation((name: string) => {
72+
if (name === 'username') return 'testuser'
73+
if (name === 'shape') return 'square'
74+
return ''
75+
})
76+
77+
await run()
78+
79+
expect(mockGensvg).toHaveBeenCalledWith(
80+
expect.objectContaining({
81+
username: 'testuser',
82+
shape: 'square'
83+
})
84+
)
85+
})
86+
87+
it('defaults shape to circle when not provided', async () => {
88+
core.getInput.mockImplementation((name: string) => {
89+
if (name === 'username') return 'testuser'
90+
return ''
91+
})
92+
93+
await run()
94+
95+
expect(mockGensvg).toHaveBeenCalledWith(
96+
expect.objectContaining({
97+
username: 'testuser',
98+
shape: 'circle'
99+
})
100+
)
101+
})
102+
70103
it('falls back to username when text is empty', async () => {
71104
core.getInput.mockImplementation((name: string) => {
72105
if (name === 'username') return 'testuser'

‎bun.lock‎

Lines changed: 0 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)