We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f2c6e2 commit 826b44cCopy full SHA for 826b44c
1 file changed
test/linter/selene_spec.lua
@@ -6,9 +6,20 @@ describe('selene', function()
6
ft('lua'):lint('selene')
7
8
local diagnostics = helper.test_with('lua', {
9
- [[a = b]],
10
- [[b = a]],
+ [[print(a)]],
11
})
12
- assert.are.same({}, diagnostics)
+ assert.are.same({
+ {
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)
24
end)
25
0 commit comments