Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/llms-txt-hub / apps/web/lib/__tests__/analytics-proxy.test.ts |
| Date | Not specified in source |
| Repository | Janady13/llms-txt-hub |
| Revision | e0f4bf978d4df168369c7601d9c5f5ea89e84377 |
| Branch | main |
| Path or archive member | apps/web/lib/__tests__/analytics-proxy.test.ts |
| Original SHA-256 | 060977d9c4f018a862389ec26df9bfa9435c00d135bd1414625306c508304999 |
| Git blob SHA | fda01d9444e2d28ca15d03c173c3cfc5006990f4 |
| Reading-copy SHA-256 | 060977d9c4f018a862389ec26df9bfa9435c00d135bd1414625306c508304999 |
Recovered source transcript
Download complete source text ↓18 lines · 0.5 KB
import { isAnalyticsProxyPath } from '@/lib/analytics-proxy'
describe('isAnalyticsProxyPath', () => {
it.each(['/track', '/track/device-id', '/api/op/event', '/api/op/op1.js'])(
'recognizes analytics proxy path %s',
pathname => {
expect(isAnalyticsProxyPath(pathname)).toBe(true)
}
)
it.each(['/api/user/delete-account', '/api/csrf', '/tracker', '/search', '/'])(
'rejects non-analytics path %s',
pathname => {
expect(isAnalyticsProxyPath(pathname)).toBe(false)
}
)
})