Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Rainrider committed Oct 19, 2024
1 parent c823683 commit 2eadbf4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
14 changes: 2 additions & 12 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,9 @@ exclude_files = {
'tests/wowmock/**',
}

files['tests/core.lua'] = {
files['tests/core_spec.lua'] = {
globals = {
'AdiDebug',
'LibStub',
'testFlagTester',
'testFilterParsing',
'testRegisterSpells',
},
}

files['tests/databases.lua'] = {
globals = {
'testDatabases',
'bit'
},
}

Expand Down
2 changes: 1 addition & 1 deletion tests/core_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('Core', function ()
end)

it('ignores unknown spells', function ()
G.C_Spell.GetSpellInfo = function (id) return nil end
G.C_Spell.GetSpellInfo = function (_id) return nil end
spy.on(G.C_Spell, 'GetSpellInfo')
lib = wowmock('../LibPlayerSpells-1.0.lua', G)

Expand Down
2 changes: 1 addition & 1 deletion tests/databases_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('Imports', function ()
'Warrior',
} do
it(source, function ()
G.LibStub = function (what) return lib end
G.LibStub = function () return lib end

wowmock('../data/' .. source .. '.lua', G)
end)
Expand Down

0 comments on commit 2eadbf4

Please sign in to comment.