mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 22:51:30 -07:00
lol dont clone tags, add some more empty endpoints
This commit is contained in:
@@ -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([])
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user