* chore: add core module test cases * chore: fix tests * chore: add code coverage report * chore: split coverage step * chore: split coverage step * Update jan-electron-linter-and-test.yml * Update jan-electron-linter-and-test.yml * Update jan-electron-linter-and-test.yml * chore: update tests * chore: add web utils test cases * chore: add restful and helper tests * chore: add tests
10 lines
271 B
TypeScript
10 lines
271 B
TypeScript
|
|
import { generateThreadId } from './thread';
|
|
|
|
test('shouldGenerateThreadIdWithCorrectFormat', () => {
|
|
const assistantId = 'assistant123';
|
|
const threadId = generateThreadId(assistantId);
|
|
const regex = /^assistant123_\d{10}$/;
|
|
expect(threadId).toMatch(regex);
|
|
});
|