UNPKG

@lobehub/chat

Version:

Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

19 lines (13 loc) 454 B
// @vitest-environment node import * as fs from 'node:fs'; import { join } from 'node:path'; import { expect } from 'vitest'; import { CsVLoader } from '../index'; describe('CSVLoader', () => { it('should run', async () => { const content = fs.readFileSync(join(__dirname, `./demo.csv`), 'utf-8'); const fileBlob = new Blob([Buffer.from(content)]); const data = await CsVLoader(fileBlob); expect(data).toMatchSnapshot(); }); });