2023-05-31 16:10:53 +08:00
|
|
|
import { expect } from 'chai';
|
2024-03-10 16:36:28 +08:00
|
|
|
// import { describe, it } from 'mocha';
|
2023-05-31 16:10:53 +08:00
|
|
|
import '../../src/context/loadContexts';
|
2023-11-29 23:34:15 +08:00
|
|
|
import { ChatContextManager } from '../../src/context/contextManager';
|
2023-05-31 16:10:53 +08:00
|
|
|
import { gitDiffCachedContext } from '../../src/context/contextGitDiffCached';
|
|
|
|
import { gitDiffContext } from '../../src/context/contextGitDiff';
|
|
|
|
import { customCommandContext } from '../../src/context/contextCustomCommand';
|
|
|
|
|
|
|
|
describe('loadContexts', () => {
|
|
|
|
it('should register all contexts', () => {
|
|
|
|
const chatContextManager = ChatContextManager.getInstance();
|
|
|
|
const contextList = chatContextManager.getContextList();
|
|
|
|
|
|
|
|
expect(contextList).to.include(gitDiffCachedContext);
|
|
|
|
expect(contextList).to.include(gitDiffContext);
|
|
|
|
expect(contextList).to.include(customCommandContext);
|
|
|
|
});
|
|
|
|
});
|