Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/CodebuffAI/codebuff
/ subscription.test.ts
File
subscription.test.ts
packages/billing/src/__tests__/subscription.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ describe, expect, it } from
'bun:test'
2
3
import
{
4
DEFAULT_TIER,
Callers
nothing calls this directly
Calls
12
getWeekStart
Function · 0.90
getWeekEnd
Function · 0.90
isWeeklyLimitError
Function · 0.90
getSubscriptionLimits
Function · 0.90
migrateUnusedCredits
Function · 0.90
expireActiveBlockGrants
Function · 0.90
checkRateLimit
Function · 0.90
ensureActiveBlockGrantCallback
Function · 0.90
utcDate
Function · 0.85
createConnMock
Function · 0.85
createSequentialMock
Function · 0.85
createMockSubscription
Function · 0.85
Tested by
no test coverage detected