diff --git a/MIGRATION.md b/MIGRATION.md index d3e7ff2a..c50016a3 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -76,4 +76,4 @@ For further reference, you can view @jellydn's [configuration](https://github.co - [x] Properly get token file path, atm it only supports Linux (easy fix) - [x] Update README and stuff - [ ] Add token count from tiktoken support to extra_info -- [ ] Add test and fix failed test in CI +- [x] Add test and fix failed test in CI diff --git a/test/plugin_spec.lua b/test/plugin_spec.lua index 238a9b99..686b3d05 100644 --- a/test/plugin_spec.lua +++ b/test/plugin_spec.lua @@ -1,7 +1,9 @@ -local plugin = require('CopilotChat') +-- Mock packages +package.loaded['plenary.curl'] = {} +package.loaded['plenary.log'] = {} describe('CopilotChat plugin', function() it('should be able to load', function() - assert.truthy(plugin) + assert.truthy(require('CopilotChat')) end) end)