16 lines
476 B
TypeScript
16 lines
476 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
import { type SearchFetchOptions, type SearchProduct, TwitterClient } from '../src/index.js';
|
|
|
|
describe('library exports', () => {
|
|
it('exposes primary library surface', () => {
|
|
expect(typeof TwitterClient).toBe('function');
|
|
});
|
|
|
|
it('exposes search product types', () => {
|
|
const product: SearchProduct = 'Top';
|
|
const options: SearchFetchOptions = { product };
|
|
|
|
expect(options.product).toBe('Top');
|
|
});
|
|
});
|