Skip to content

Commit

Permalink
test: fix e2e teal test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Alvarez committed Oct 5, 2022
1 parent c333ecc commit a69a6cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/files/test-file.tl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function add(a: number, b: number): number return a - b end
local function add(a: number, b: number): number return a - b end

local s = add(1, 2)

Expand Down
4 changes: 2 additions & 2 deletions test/spec/e2e_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ describe("e2e", function()

it("should handle source that uses temp file", function()
-- replace - with .., which will mess up the return type
api.nvim_buf_set_text(api.nvim_get_current_buf(), 0, 52, 0, 53, { ".." })
api.nvim_buf_set_text(api.nvim_get_current_buf(), 0, 58, 0, 59, { ".." })
tu.wait_for_real_source()

local buf_diagnostics = vim.diagnostic.get(0)
Expand All @@ -386,7 +386,7 @@ describe("e2e", function()
assert.equals(teal_diagnostic.source, "teal")
assert.equals(teal_diagnostic.lnum, 0)
assert.equals(teal_diagnostic.end_lnum, 1)
assert.equals(teal_diagnostic.col, 52)
assert.equals(teal_diagnostic.col, 58)
assert.equals(teal_diagnostic.end_col, 0)
end)
end)
Expand Down

0 comments on commit a69a6cf

Please sign in to comment.