mirror of
https://github.com/harivansh-afk/forge.nvim.git
synced 2026-04-15 08:03:44 +00:00
test: update format tests for segment-based output
Problem: format functions now return `forge.Segment[]` instead of strings, so all tests calling `:find()` and `:match()` on results were failing. Solution: add `flatten()` helper that concatenates segment text, and wrap all format assertions with it. Also fix stylua formatting in `sources_spec.lua`.
This commit is contained in:
parent
fa7cab89af
commit
830442f856
2 changed files with 38 additions and 27 deletions
|
|
@ -86,7 +86,10 @@ describe('github', function()
|
|||
end)
|
||||
|
||||
it('preserves in_progress status in normalize_run', function()
|
||||
assert.equals('in_progress', gh:normalize_run({ databaseId = 1, status = 'in_progress' }).status)
|
||||
assert.equals(
|
||||
'in_progress',
|
||||
gh:normalize_run({ databaseId = 1, status = 'in_progress' }).status
|
||||
)
|
||||
end)
|
||||
end)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue