Skip to content

Commit 826b44c

Browse files
committed
fix(ci): selene
1 parent 4f2c6e2 commit 826b44c

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

test/linter/selene_spec.lua

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,20 @@ describe('selene', function()
66
ft('lua'):lint('selene')
77

88
local diagnostics = helper.test_with('lua', {
9-
[[a = b]],
10-
[[b = a]],
9+
[[print(a)]],
1110
})
12-
assert.are.same({}, diagnostics)
11+
assert.are.same({
12+
{
13+
bufnr = 3,
14+
col = 6,
15+
end_col = 0,
16+
end_lnum = 0,
17+
lnum = 0,
18+
message = '`a` is not defined[undefined_variable]',
19+
namespace = ns,
20+
severity = 1,
21+
source = 'selene',
22+
},
23+
}, diagnostics)
1324
end)
1425
end)

0 commit comments

Comments
 (0)