From c28965e95083365fcba75f924b3866f433c8e5e1 Mon Sep 17 00:00:00 2001 From: Tomas Slusny Date: Fri, 1 Mar 2024 15:18:56 +0100 Subject: [PATCH] Fix plugin_spec.lua (#105) Signed-off-by: Tomas Slusny Co-authored-by: Tomas Slusny --- MIGRATION.md | 2 +- test/plugin_spec.lua | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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)