Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/sourcebot-dev/sourcebot
/ entitlements.test.ts
File
entitlements.test.ts
packages/shared/src/entitlements.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ describe, test, expect, vi, beforeEach } from
'vitest'
;
2
import
type
{ License } from
'@sourcebot/db'
;
3
4
const
mocks = vi.hoisted(() => ({
Callers
nothing calls this directly
Calls
5
validOfflineKey
Function · 0.85
isAnonymousAccessAvailable
Function · 0.70
makeLicense
Function · 0.70
getEntitlements
Function · 0.70
hasEntitlement
Function · 0.70
Tested by
no test coverage detected