We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0185e0c commit 99fbb8eCopy full SHA for 99fbb8e
tests/unit/diff_spec.lua
@@ -70,7 +70,8 @@ describe("Diff Module", function()
70
expect(result.success).to_be_true()
71
expect(result.temp_file).to_be_string()
72
expect(result.temp_file:find("claudecode_diff", 1, true)).not_to_be_nil()
73
- expect(result.temp_file:find("new.lua.new", 1, true)).not_to_be_nil()
+ local expected_suffix = vim.fn.fnamemodify(new_file_path, ":t") .. ".new"
74
+ expect(result.temp_file:find(expected_suffix, 1, true)).not_to_be_nil()
75
76
rawset(io, "open", old_io_open)
77
end)
0 commit comments