diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-10-20 16:44:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-20 16:44:39 -0700 |
commit | 86832dcd1922eee37acc26310f72aa70def1514b (patch) | |
tree | d9db0de1011d6b495e62e7a2a90d46de97f06996 /test/functional/lua/vim_spec.lua | |
parent | 8c2d45be77299d6eb70165697bc5c29898cdb25e (diff) | |
parent | 18b43c331d8a0ed87d7cbefe2a18543b8e4ad360 (diff) | |
download | rneovim-86832dcd1922eee37acc26310f72aa70def1514b.tar.gz rneovim-86832dcd1922eee37acc26310f72aa70def1514b.tar.bz2 rneovim-86832dcd1922eee37acc26310f72aa70def1514b.zip |
Merge #30840 from justinmk/renamehl
Diffstat (limited to 'test/functional/lua/vim_spec.lua')
-rw-r--r-- | test/functional/lua/vim_spec.lua | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/test/functional/lua/vim_spec.lua b/test/functional/lua/vim_spec.lua index 793cf7cfd7..ccb45a9d26 100644 --- a/test/functional/lua/vim_spec.lua +++ b/test/functional/lua/vim_spec.lua @@ -155,10 +155,10 @@ describe('lua stdlib', function() end) it('plugin=nil, no error if soft-deprecated', function() - eq( - vim.NIL, - exec_lua('return vim.deprecate(...)', 'foo.baz()', 'foo.better_baz()', '0.99.0') - ) + eq(vim.NIL, exec_lua [[return vim.deprecate('old1', 'new1', '0.99.0')]]) + -- Major version > current Nvim major is always "soft-deprecated". + -- XXX: This is also a reminder to update the hardcoded `nvim_major`, when Nvim reaches 1.0. + eq(vim.NIL, exec_lua [[return vim.deprecate('old2', 'new2', '1.0.0')]]) end) it('plugin=nil, show error if hard-deprecated', function() @@ -175,13 +175,6 @@ describe('lua stdlib', function() ) end) - it('plugin=nil, to be deleted in the next major version (1.0)', function() - eq( - [[foo.baz() is deprecated. Run ":checkhealth vim.deprecated" for more information]], - exec_lua [[ return vim.deprecate('foo.baz()', nil, '1.0') ]] - ) - end) - it('plugin specified', function() -- When `plugin` is specified, don't show ":help deprecated". #22235 eq( |