This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { TwitterClient } from '../src/index.js';
|
||||
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');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user