fix(tests): missing clear() #18927

This was caught in #18674 since it allows test isolation
This commit is contained in:
kylo252 2022-06-13 13:05:17 +02:00 committed by GitHub
parent 663cbe2620
commit 837360868b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,8 @@ local function reopenwithfolds(b)
end
describe('API: buffer events:', function()
before_each(clear)
it('when lines are added', function()
local b, tick = editoriginal(true)

View File

@ -93,6 +93,7 @@ describe("api metadata", function()
local api, compat, stable, api_level
local old_api = {}
setup(function()
clear() -- Ensure a session before requesting api_info.
api = meths.get_api_info()[2]
compat = api.version.api_compatible
api_level = api.version.api_level