fix(test): include hl in namespace
This commit is contained in:
parent
847f04d1e8
commit
23310eed53
2 changed files with 12 additions and 8 deletions
|
|
@ -122,14 +122,14 @@ describe('Error boundary handling', function()
|
|||
it('should handle scraping failures without state corruption', function()
|
||||
cp.handle_command({ fargs = { 'codeforces', 'fail_scrape', 'a' } })
|
||||
|
||||
local has_scrape_error = false
|
||||
local has_error = false
|
||||
for _, log_entry in ipairs(logged_messages) do
|
||||
if log_entry.msg and log_entry.msg:match('scraping failed') then
|
||||
has_scrape_error = true
|
||||
if log_entry.level == vim.log.levels.ERROR then
|
||||
has_error = true
|
||||
break
|
||||
end
|
||||
end
|
||||
assert.is_true(has_scrape_error, 'Should log scraping failure')
|
||||
assert.is_true(has_error, 'Should log error for failed scraping')
|
||||
|
||||
local context = cp.get_current_context()
|
||||
assert.equals('codeforces', context.platform)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue