lol dont clone tags, add some more empty endpoints

This commit is contained in:
Devin Zuczek
2026-07-15 14:40:02 -04:00
parent 4612144880
commit 0061dc046b
5 changed files with 25 additions and 10 deletions
+4
View File
@@ -41,4 +41,8 @@ const app = new Hono<App>()
// an empty list is the client's "no active campaigns" state.
.get('/purchasecampaign/allcurrent/v2', (c) => c.json([]))
// Token-bundle purchase reminders (the "buy more tokens" nudge). None to show,
// and an empty list is the client's "no reminders" state.
.get('/reminder/currentTokenBundles/v2', (c) => c.json([]))
export default app
@@ -32,4 +32,10 @@ describe('commerce endpoints', () => {
expect(res.status).toBe(200)
expect(await res.json()).toEqual([])
})
it('GET /reminder/currentTokenBundles/v2 returns []', async () => {
const res = await SELF.fetch(`${ORIGIN}/reminder/currentTokenBundles/v2`)
expect(res.status).toBe(200)
expect(await res.json()).toEqual([])
})
})