mirror of
https://github.com/neovim/neovim.git
synced 2026-06-15 16:23:48 +00:00
test: fix merge conflict
This commit is contained in:
@@ -71,8 +71,7 @@ describe(':trust', function()
|
||||
|
||||
command('edit ' .. empty_file)
|
||||
matches('^Allowed in trust database%: ".*' .. empty_file .. '"$', exec_capture('trust'))
|
||||
local trust = t.read_file(fn.stdpath('state') .. pathsep .. 'trust')
|
||||
eq(string.format('%s %s', hash, cwd .. pathsep .. empty_file), vim.trim(trust))
|
||||
assert_trust_entry(('%s %s'):format(hash, osjoin(cwd, empty_file)))
|
||||
end)
|
||||
|
||||
it('deny then trust then remove a file using current buffer', function()
|
||||
|
||||
@@ -334,12 +334,11 @@ describe('vim.secure', function()
|
||||
it('trust an empty file using bufnr', function()
|
||||
local cwd = fn.getcwd()
|
||||
local hash = fn.sha256(assert(read_file(empty_file)))
|
||||
local full_path = cwd .. pathsep .. empty_file
|
||||
local full_path = osjoin(cwd, empty_file)
|
||||
|
||||
command('edit ' .. empty_file)
|
||||
eq({ true, full_path }, exec_lua([[return {vim.secure.trust({action='allow', bufnr=0})}]]))
|
||||
local trust = assert(read_file(stdpath('state') .. pathsep .. 'trust'))
|
||||
eq(string.format('%s %s', hash, full_path), vim.trim(trust))
|
||||
assert_trust_entry(('%s %s'):format(hash, full_path))
|
||||
end)
|
||||
|
||||
it('deny then trust then remove a file using bufnr', function()
|
||||
|
||||
Reference in New Issue
Block a user