12 Commits

Author SHA1 Message Date
bobo.yang
63ea89387b Update test cases to include args property
- Add args property to commandManager.test.ts test cases.
- Add args property to customCommand.test.ts test cases.
- Update sendMessageBase.test.ts to fix expected result.
2023-07-24 00:11:56 +08:00
bobo.yang
23883abc20 Update API endpoint in apiKey.test.ts
- Replace old endpoint with the new 'https://api.devchat.ai/v1' endpoint.
2023-07-24 00:11:56 +08:00
bobo.yang
d99548b3a0 Add unit tests for actions with valid and empty args
- Add a test case for applying an action with valid args.
- Add a test case for applying an action with empty args.
2023-07-24 00:11:56 +08:00
bobo.yang
421b4e6f2e Update sendMessageBase tests after refactoring
- Removed tests for the getParentHash function in sendMessageBase.test.ts.
- This function was removed in a previous commit, so the tests are no longer needed.
2023-07-17 20:31:01 +08:00
bobo.yang
5fc21c1982 Refactor checkDevChatDependency to accept pythonCommand
- Update checkDevChatDependency to take pythonCommand as an argument.
- Modify getPipxEnvironmentPath to use pythonCommand.
- Adjust statusBarViewBase.ts to pass pythonCommand.
- Update test cases in commandsBase.test.ts accordingly.
2023-06-13 11:56:03 +08:00
bobo.yang
3ec578c7be load topic from DevChat 2023-06-06 17:52:31 +08:00
bobo.yang
a66127ffc9 Add CustomContexts class and related test cases
- Implemented CustomContexts class to handle custom contexts.
- Added methods to parse, get, and handle custom context commands.
- Created test cases for CustomContexts class in customContext.test.ts.
2023-06-02 09:58:44 +08:00
bobo.yang
b2ba9e148d Support env var and prompt input for command 2023-06-02 09:58:44 +08:00
bobo.yang
a349d8dd29 fix test cases 2023-05-31 16:57:39 +08:00
bobo.yang
ba097eab26 add unit tests for src 2023-05-31 16:10:53 +08:00
bobo.yang
562a125902 handle vscode 2023-05-31 16:10:53 +08:00
bobo.yang
cad2bbb69d refactor code 2023-05-31 16:10:53 +08:00