diff --git a/.luacheckrc b/.luacheckrc index ba2a57f..51e0504 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -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' }, } diff --git a/tests/core_spec.lua b/tests/core_spec.lua index b987e72..91374b0 100644 --- a/tests/core_spec.lua +++ b/tests/core_spec.lua @@ -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) diff --git a/tests/databases_spec.lua b/tests/databases_spec.lua index 86e8abb..70826d8 100644 --- a/tests/databases_spec.lua +++ b/tests/databases_spec.lua @@ -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)