DeepCodeGeniusWeb-vscode/test/context/loadContexts.test.ts
2023-05-31 16:10:53 +08:00

18 lines
785 B
TypeScript

import { expect } from 'chai';
import { describe, it } from 'mocha';
import '../../src/context/loadContexts';
import ChatContextManager from '../../src/context/contextManager';
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);
});
});