Skip to content

Commit b3918e6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent caa8c8d commit b3918e6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/diff_spec.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ describe('CopilotChat.utils.diff', function()
306306
-old
307307
+new
308308
]]
309-
local original_content = 'old' -- no trailing newline
309+
local original_content = 'old' -- no trailing newline
310310
local result, applied = diff.apply_unified_diff(diff_text, original_content)
311311
assert.is_true(applied)
312312
assert.are.same({ 'new' }, result)
@@ -389,9 +389,7 @@ describe('CopilotChat.utils.diff', function()
389389
for i = 1, 10 do
390390
table.insert(lines, '+line' .. i)
391391
end
392-
local diff_text = '--- a/foo.txt\n+++ b/foo.txt\n@@ -4,0 +5,10 @@\n'
393-
.. table.concat(lines, '\n')
394-
.. '\n'
392+
local diff_text = '--- a/foo.txt\n+++ b/foo.txt\n@@ -4,0 +5,10 @@\n' .. table.concat(lines, '\n') .. '\n'
395393
local original = { 'a', 'b', 'c', 'd', 'e' }
396394
local result, applied = diff.apply_unified_diff(diff_text, table.concat(original, '\n'))
397395
assert.is_true(applied)

0 commit comments

Comments
 (0)