Open History to see the last commit
1import { describe, expect, it } from 'vitest'
2import {
3 getPerplexityIntegrationHeaders,
4 PERPLEXITY_INTEGRATION_HEADER,
5} from '../src/utils/attribution'
6
7describe('getPerplexityIntegrationHeaders', () => {
8 it('returns the Perplexity attribution header with a tanstack/ package version', () => {
9 const headers = getPerplexityIntegrationHeaders()
10 expect(headers[PERPLEXITY_INTEGRATION_HEADER]).toMatch(
11 /^tanstack\/\d+\.\d+\.\d+/,
12 )
13 })
14})