mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
tests: more cleanup of plugin/shada_spec
Ref: https://github.com/neovim/neovim/pull/10701/commits/330a6713#r311005754 Closes https://github.com/neovim/neovim/pull/10710.
This commit is contained in:
parent
95e1ce24e8
commit
4f148edd75
@ -13,14 +13,8 @@ local shada_helpers = require('test.functional.shada.helpers')
|
|||||||
local get_shada_rw = shada_helpers.get_shada_rw
|
local get_shada_rw = shada_helpers.get_shada_rw
|
||||||
|
|
||||||
local function reset(shada_file)
|
local function reset(shada_file)
|
||||||
-- TODO(justinmk): why is this needed?
|
clear{ args={'-u', 'NORC',
|
||||||
local rtp_value = ('\'%s/runtime\''):format(
|
|
||||||
paths.test_source_path:gsub('\'', '\'\''))
|
|
||||||
clear{args_rm={'-u', '-i'},
|
|
||||||
args={'-u', 'NORC',
|
|
||||||
'-i', shada_file or 'NONE',
|
'-i', shada_file or 'NONE',
|
||||||
'--cmd', 'set laststatus&',
|
|
||||||
'--cmd', 'let &runtimepath='..rtp_value,
|
|
||||||
}}
|
}}
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -2554,6 +2548,7 @@ describe('syntax/shada.vim', function()
|
|||||||
it('works', function()
|
it('works', function()
|
||||||
nvim_command('syntax on')
|
nvim_command('syntax on')
|
||||||
nvim_command('setlocal syntax=shada')
|
nvim_command('setlocal syntax=shada')
|
||||||
|
nvim_command('set laststatus&')
|
||||||
curbuf('set_lines', 0, 1, true, {
|
curbuf('set_lines', 0, 1, true, {
|
||||||
'Header with timestamp ' .. epoch .. ':',
|
'Header with timestamp ' .. epoch .. ':',
|
||||||
' % Key Value',
|
' % Key Value',
|
||||||
@ -2890,4 +2885,3 @@ describe('syntax/shada.vim', function()
|
|||||||
eq(exp, act)
|
eq(exp, act)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user